File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
examples/02.Digital/toneMultiple Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 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
2323void 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}
You can’t perform that action at this time.
0 commit comments