#define BUZZER 12
int c = 262;
int d = 294;
int e = 330;
int f = 349;
int g = 492;
int a = 440;
int b = 494;
int c_h = 523;
int notes[] = {c,d,e,f,g,a,b,c_h};
int nNotes = 8;
void setup() {
// put your setup code here, to run once:
pinMode(BUZZER, OUTPUT);
for(int i = 0; i<nNotes; i++ )
{
tone(BUZZER , notes[i]);
delay((500));
noTone(BUZZER);
delay((10));
}
}
void loop() {
// put your main code here, to run repeatedly:
//delay(10); // this speeds up the simulation
}