mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Run new astyle formatter against all the examples
This commit is contained in:
@ -1,19 +1,19 @@
|
||||
/*
|
||||
Multiple tone player
|
||||
|
||||
|
||||
Plays multiple tones on multiple pins in sequence
|
||||
|
||||
|
||||
circuit:
|
||||
* 3 8-ohm speaker on digital pins 6, 7, and 8
|
||||
|
||||
|
||||
created 8 March 2010
|
||||
by Tom Igoe
|
||||
by Tom Igoe
|
||||
based on a snippet from Greg Borenstein
|
||||
|
||||
This example code is in the public domain.
|
||||
|
||||
|
||||
http://arduino.cc/en/Tutorial/Tone4
|
||||
|
||||
|
||||
*/
|
||||
|
||||
void setup() {
|
||||
@ -22,7 +22,7 @@ void setup() {
|
||||
|
||||
void loop() {
|
||||
// turn off tone function for pin 8:
|
||||
noTone(8);
|
||||
noTone(8);
|
||||
// play a note on pin 6 for 200 ms:
|
||||
tone(6, 440, 200);
|
||||
delay(200);
|
||||
@ -32,9 +32,9 @@ void loop() {
|
||||
// play a note on pin 7 for 500 ms:
|
||||
tone(7, 494, 500);
|
||||
delay(500);
|
||||
|
||||
|
||||
// turn off tone function for pin 7:
|
||||
noTone(7);
|
||||
noTone(7);
|
||||
// play a note on pin 8 for 500 ms:
|
||||
tone(8, 523, 300);
|
||||
delay(300);
|
||||
|
Reference in New Issue
Block a user