Multiple Timers Hanging
Hi, I've modified the example code from the multiple timer folder with my desired interrupt time (1000 microseconds for Timer0 and 5000 microseconds for Timer3). From the arduino serial monitor, It seems that the arduino hangs at 5000us. Does this mean that the arduino does not know what ISR to prioritize? I've attached the code and the output of the arduino serial monitor for visualization.
void firstHandler(){
Serial.println("[- ] First Handler!");
}
void secondHandler(){
Serial.println("[ - ] Second Handler!");
}
void thirdHandler(){
Serial.println("[ -] Third Handler!");
}
void setup(){
Serial.begin(115200);
Timer0.attachInterrupt(firstHandler).start(1000);
Timer3.attachInterrupt(secondHandler).start(5000);
}
void loop() {
}

Am I missing something? Its my first time using the library. Any help would be greatly appreciated. Thank you.
Can you try detachInterrupt and reenable interrupt in the ISR, and see if that keeps it going?
I have the same Problem. DetachInterrupt and reenable it doesnt work.
Don't use print in ISR. You could increase counters in ISRs and print their values in the loop. Please close this issue as it is invalid.