int buzzer = 8;
int note_c4 = 262;
int note_d4 = 294;
int note_e4 = 330;
int note_f4 = 349;
int note_g4 = 392;
int note_a4 = 440;
int note_b4 = 494;
int note_c5 = 523;
void setup()
{
pinMode(buzzer, OUTPUT);
}
void loop()
{
// play c4 for 1 second
tone(buzzer, note_c4);
delay(1000);
// play d4 for 1 second
// play e4 for 1 second
// play f4 for 1 second
// play g4 for 1 second
// play a4 for 1 second
// play b4 for 1 second
// play c5 for 1 second
}