Skip to content

porting scheduler for Avr #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Create Loop2.ino
New Example
  • Loading branch information
Testato committed Jan 1, 2016
commit ca2f0b7d5fbf6a3753b2d097c0e23d4074a42c4c
12 changes: 12 additions & 0 deletions examples/MultiplePWM/Loop2.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

// Task no.2

void loop2 () {
analogWrite(led1, counter1);
counter1 += 50;

// When multiple tasks are running, 'delay' passes control to
// other tasks while waiting and guarantees they get executed
// It is not necessary to call yield() when using delay()
delay(1000);
}