Skip to content

Commit 5481bac

Browse files
committed
Fixes #1432
1 parent ec7996e commit 5481bac

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

build/shared/examples/02.Digital/toneMultiple/toneMultiple.ino

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plays multiple tones on multiple pins in sequence
55
66
circuit:
7-
* 3 8-ohm speaker on digital pins 6, 7, and 11
7+
* 3 8-ohm speaker on digital pins 6, 7, and 8
88
99
created 8 March 2010
1010
by Tom Igoe
@@ -21,8 +21,8 @@ void setup() {
2121
}
2222

2323
void loop() {
24-
// turn off tone function for pin 11:
25-
noTone(11);
24+
// turn off tone function for pin 8:
25+
noTone(8);
2626
// play a note on pin 6 for 200 ms:
2727
tone(6, 440, 200);
2828
delay(200);
@@ -35,8 +35,7 @@ void loop() {
3535

3636
// turn off tone function for pin 7:
3737
noTone(7);
38-
// play a note on pin 11 for 500 ms:
39-
tone(11, 523, 300);
38+
// play a note on pin 8 for 500 ms:
39+
tone(8, 523, 300);
4040
delay(300);
41-
4241
}

0 commit comments

Comments
 (0)