Skip to content

Multiple Timers Hanging #77

Description

@RRDajay

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() {

}

image

Am I missing something? Its my first time using the library. Any help would be greatly appreciated. Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions