Go Down

Topic: Simple Scheduler (Read 791 times) previous topic - next topic

fiddler

I want to do a simple  scheduler like below.
I'm new to Arduino and C but done some assembly and Forth.

I have looked through the help files but haven't found anything yet.
I'm not ready for a fully blown RTOS yet, just something simple for now.

Any suggestions ?
fiddler
//+++++++++++++

void Main();
  GoTo  Task_1;
  GoTo  Task_2;
  GoTo  Task_3;
  GoTo  Main;
 
Task_1;
  return

Task_2;
  return

Task_3;
  return 

CrossRoads

Code: [Select]

void setup(){
}

void loop(){
function1();
function2();
function3();
}

function1(){
//code
}
function2(){
//code
}
function3(){
//code
}
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


fiddler


James C4S

You might also want to look at Metro:
http://www.arduino.cc/playground/Code/Metro
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Udo Klein

Check out my experiments http://blog.blinkenlight.net

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy