I see that with Teensyduino 1.14, IntervalTimer is now integrated and supports the use of up to 4 timers. Thank you Paul!
A question on the proper usage of instantiating and using these IntervalTimer objects. I'd like to use 8-10 differently named IntervalTimer objects, but only 4 in use at a time. These timers provide very different functions, and giving them names associated with these functions would be very useful.
Option 1:
- instantiate all 10 objects. Manage these objects such that only 4 are in use at a time using TimerX.begin(), TimerX.end();
Option 2:
- instantiate and destroy IntervalTimer objects as needed. Not sure how to do this.
Any input would be very appreciated
Thanks!
A question on the proper usage of instantiating and using these IntervalTimer objects. I'd like to use 8-10 differently named IntervalTimer objects, but only 4 in use at a time. These timers provide very different functions, and giving them names associated with these functions would be very useful.
Option 1:
- instantiate all 10 objects. Manage these objects such that only 4 are in use at a time using TimerX.begin(), TimerX.end();
Option 2:
- instantiate and destroy IntervalTimer objects as needed. Not sure how to do this.
Any input would be very appreciated
Thanks!
Last edited: