[Oberon] a module a page (keeps the mind sane)?

Frans-Pieter Vonck fp at vonck.nl
Mon Nov 5 22:02:34 CET 2018


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.


More information about the Oberon mailing list