Skip to content

Commit ce19aea

Browse files
committed
Update Loop2.ino
1 parent c920dc7 commit ce19aea

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

examples/MultiplePWM/Loop2.ino

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
// Task no.2
33

44
void loop2 () {
5-
analogWrite(led1, counter1);
5+
analogWrite(LED2, counter1);
66
counter1 += 50;
7-
8-
// When multiple tasks are running, 'delay' passes control to
9-
// other tasks while waiting and guarantees they get executed
10-
// It is not necessary to call yield() when using delay()
11-
delay(1000);
7+
delay(500);
128
}

0 commit comments

Comments
 (0)