#define BUZZERPIN 2
int Note[8] {262, 294, 330, 349, 392, 440, 494, 522};
void setup() {
// put your setup code here, to run once:
pinMode(BUZZERPIN, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int i;
for(i=0;i<8;i++)
{
tone(BUZZERPIN, Note[i] , 1000);
delay(1000);
noTone(BUZZERPIN);
}
int a;
for(a=7;a>=0;a--);
tone(BUZZERPIN, Note[a] , 1000);
delay (1000);
noTone(BUZZERPIN);
}