GitHub - DrBubble/ArduinoOS: ArduinoOS - An Operating System for Arduino
Sleep
In order to pause your programm you can use:
Do not use delay since it does not allow the operating system to execute other tasks in the meanwhile and will block the thread for that time. That means delay(500) will block for 1 second if 2 Threads are running and for 2 seconds if 4 threads are running.
Create Thread
With InitTask a new thread can be created.
Example:
void mainThread()
{
InitTask(secondThread);
}
void secondThread()
{
}
Operating System uptime
To get the uptime of the opera...
Read more at github.com