ESCALA MUSICAL CON BUZZER
ESCALA MUSICAL CON BUZZER Vídeo Código // Pin 13 has an LED connected on most Arduino boards. // give it a name: int buzzer = 13; // the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(buzzer, OUTPUT); } // the loop routine runs over and over again forever: void loop() { tone(buzzer, 4187); delay(1000); tone(buzzer,2349); delay(1000); tone(buzzer,2637); delay (1000); tone(buzzer,2793); delay(1000); tone(buzzer, 1567); delay(1000); tone(buzzer, 880); delay(1000); tone(buzzer,987); delay(1000); tone(buzzer,1047); delay (5000); }
Comentarios
Publicar un comentario