/* Program to send 440 Hz signal to the buzzer on Wytec EduBase/EduPad board * with Tiva TM4C123/MSP432. * This program uses tone() function of Energia to toggle output pin 37 at 440 Hz. * Pin 37 is connected to the speaker on the board. */ const int BUZZER = 37; 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); }