#include "pitches.h"
int melody[] = {
NOTE_G4, NOTE_C6};
void setup() {
// play startsignal
delay(1000);
tone(6, melody[0], 200);
tone(6, melody[1], 100);
//set all LEDS as OUTPUT
pinMode(A0,OUTPUT);
pinMode(A1,OUTPUT);
pinMode(A2,OUTPUT);
pinMode(A3,OUTPUT);
}
void loop() {
//test all LEDS
int pins[] = {A0, A1, A2, A3};
for(int i=0;i<4;i++){
Serial.println(i, pins[i]);
digitalWrite(pins[i], HIGH);
delay(500);
digitalWrite(pins[i], LOW);