commented
This commit is contained in:
parent
fbffa5f308
commit
7e8995dc12
1 changed files with 6 additions and 4 deletions
|
@ -6,21 +6,23 @@ int melody[] = {
|
|||
|
||||
|
||||
void setup() {
|
||||
// put your setup code here, to run once:
|
||||
/*delay(1000);
|
||||
// play startsignal
|
||||
delay(1000);
|
||||
tone(6, melody[0], 200);
|
||||
delay(1000);
|
||||
tone(6, melody[0], 200);
|
||||
delay(1000);
|
||||
tone(6, melody[1], 100);*/
|
||||
tone(6, melody[1], 100);
|
||||
|
||||
//set all LEDS as OUTPUT
|
||||
pinMode(A0,OUTPUT);
|
||||
pinMode(A1,OUTPUT);
|
||||
pinMode(A2,OUTPUT);
|
||||
pinMode(A3,OUTPUT);
|
||||
Serial.begin(9600);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
//test all LEDS
|
||||
int pins[] = {A0, A1, A2, A3};
|
||||
for(int i=0;i<4;i++){
|
||||
Serial.println(i, pins[i]);
|
||||
|
|
Reference in a new issue