Found the code from here: http://arduino.cc/en/Tutorial/Tone4
bEEp! bEEp! bEEp! bEEp! bEEp! bEEp!
void setup() {
}
void loop() {
// turn off tone function for pin 11:
noTone(11);
// play a note on pin 6 for 200 ms:
tone(8, 440, 200);
delay(200);
// turn off tone function for pin 6:
noTone(8);
delay(300);
}
Ei kommentteja:
Lähetä kommentti