Code: Select all
hw_timer_t *My_timer = NULL;
My_timer = timerBegin(0, 80, true);
timerAttachInterrupt(My_timer, &onTimer, true);
timerAlarmWrite(My_timer, 1000000, true);
timerAlarmEnable(My_timer);
I have a running code where it is local but I am not confortable with that.
I can't find the answer in the doc.