5 Nov
2018
5 Nov
'18
10:02 p.m.
Eventloop the arduino way. (a little offtopic Here is a nice example on Adafruit how multitasking can be achieved with a timer. https://learn.adafruit.com/multi-tasking-the-arduino-part-1/overview As the tutorial progresses the event loop is cleaned up by using classes. a snippet from the code: Flasher led1(12, 100, 400); Flasher led2(13, 350, 350); void loop() { led1.Update(); led2.Update(); } A scheduler is not necessary and the code is still readable. Could be nice also as an example for oberon07 (astrobe) Greets, F.P.