mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Added Tone multiple example
This commit is contained in:
@ -30,14 +30,12 @@ void loop() {
|
|||||||
// turn off tone function for pin 6:
|
// turn off tone function for pin 6:
|
||||||
noTone(6);
|
noTone(6);
|
||||||
// play a note on pin 7 for 500 ms:
|
// play a note on pin 7 for 500 ms:
|
||||||
|
|
||||||
tone(7, 494, 500);
|
tone(7, 494, 500);
|
||||||
delay(500);
|
delay(500);
|
||||||
// turn off tone function for pin 7:
|
|
||||||
|
|
||||||
|
// turn off tone function for pin 7:
|
||||||
noTone(7);
|
noTone(7);
|
||||||
// play a note on pin 11 for 500 ms:
|
// play a note on pin 11 for 500 ms:
|
||||||
|
|
||||||
tone(11, 523, 300);
|
tone(11, 523, 300);
|
||||||
delay(300);
|
delay(300);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user