commented

This commit is contained in:
CodeCrafter912 2018-07-07 14:46:04 +02:00
parent fbffa5f308
commit 7e8995dc12

View file

@ -6,21 +6,23 @@ int melody[] = {
void setup() { void setup() {
// put your setup code here, to run once: // play startsignal
/*delay(1000); delay(1000);
tone(6, melody[0], 200); tone(6, melody[0], 200);
delay(1000); delay(1000);
tone(6, melody[0], 200); tone(6, melody[0], 200);
delay(1000); delay(1000);
tone(6, melody[1], 100);*/ tone(6, melody[1], 100);
//set all LEDS as OUTPUT
pinMode(A0,OUTPUT); pinMode(A0,OUTPUT);
pinMode(A1,OUTPUT); pinMode(A1,OUTPUT);
pinMode(A2,OUTPUT); pinMode(A2,OUTPUT);
pinMode(A3,OUTPUT); pinMode(A3,OUTPUT);
Serial.begin(9600);
} }
void loop() { void loop() {
//test all LEDS
int pins[] = {A0, A1, A2, A3}; int pins[] = {A0, A1, A2, A3};
for(int i=0;i<4;i++){ for(int i=0;i<4;i++){
Serial.println(i, pins[i]); Serial.println(i, pins[i]);