//Testing Buzzer on the EduBase V2 /* This program sends 440 Hz signal to the buzzer * It uses Arduino function tone() to drive pin 9 at 440 Hz. * On EduBase V2, Pin 9 is connected to the speaker buzzer. */ const int BUZZER = 9; void setup() { } void loop() { /* send 440 Hz signal to buzzer for a second */ tone(BUZZER, 440); delay(1000); /* turn off output to buzzer for a second */ noTone(BUZZER); delay(1000); }