Teensy 3.1 with multiple loops

Status
Not open for further replies.

Zezze

New member
Hi!
With the Arduino Due Board you can use the Scheduler Library to run multiple loops at the same time but the Due dosen't really fit my project, it's a little bit out of budget and too big and I wonder if anyone knows how to use this or a similar library with the Teensy 3.1?

If there is to any help I need to watch multiple inputs for LOW and HIGH in one loop at the same time as i watch buttons in one separate loop and then uses the value of the input loop and the button loop in a main loop.

Scheduler Library
http://arduino.cc/en/Tutorial/MultipleBlinks
 
Last edited:
Can the buttons be interrupt driven instead of scanning them. That way you could do your main loop and then whenever a button is pressed the interrupt is triggered and the button loop is initiated.
 
Status
Not open for further replies.
Back
Top