// https://wokwi.com/projects/428048784740427777
// Code from
// https://github.com/arduino/arduino-examples/blob/main/examples/02.Digital/toneMultiple/toneMultiple.ino
// See also https://forum.arduino.cc/t/wokwi-simulations-for-arduino-built-in-examples/1304754
//
/*
Multiple tone player
Plays multiple tones on multiple pins in sequence
circuit:
- three 8 ohm speakers on digital pins 6, 7, and 8
created 8 Mar 2010
by Tom Igoe
based on a snippet from Greg Borenstein
This example code is in the public domain.
https://docs.arduino.cc/built-in-examples/digital/toneMultiple/
*/
void setup() {
}
void loop() {
// turn off tone function for pin 8:
noTone(8);
// play a note on pin 6 for 200 ms:
tone(6, 440, 200);
delay(200);
// turn off tone function for pin 6:
noTone(6);
// play a note on pin 7 for 500 ms:
tone(7, 494, 500);
delay(500);
// turn off tone function for pin 7:
noTone(7);
// play a note on pin 8 for 300 ms:
tone(8, 523, 300);
delay(300);
}