Open
Description
Hi, i have to handle events that will occour in minutes (not milliseconds), but i noticed that using this code:
// in the global
auto play_time_timer = timer_create_default();
// in the setup
play_time_timer.in(play_time*1000, CT_win);
// in the loop
play_time_timer.tick();
// and the called procedure
bool CT_win(void *argument){
Serial.print("timer complete!");
return false;
}
works only if play_time if less than 33 seconds (so global delay less than 33000 milliseconds).
I suppose have to deal with the INT limit, but how i can make a minute counting timer?