39 lines
702 B
Arduino
39 lines
702 B
Arduino
|
void setup() {
|
||
|
pinMode(13, OUTPUT);
|
||
|
pinMode(12, OUTPUT);
|
||
|
pinMode(11, OUTPUT);
|
||
|
pinMode(10, OUTPUT);
|
||
|
digitalWrite(13,1);
|
||
|
digitalWrite(12,1);
|
||
|
digitalWrite(11,1);
|
||
|
digitalWrite(10,1);
|
||
|
}
|
||
|
|
||
|
void loop() {
|
||
|
digitalWrite(13,0);
|
||
|
delay(1000);
|
||
|
digitalWrite(13,1);
|
||
|
digitalWrite(12,0);
|
||
|
delay(1000);
|
||
|
digitalWrite(12,1);
|
||
|
digitalWrite(11,0);
|
||
|
delay(1000);
|
||
|
digitalWrite(11,1);
|
||
|
digitalWrite(10,0);
|
||
|
delay(1000);
|
||
|
digitalWrite(10,1);
|
||
|
digitalWrite(13,0);
|
||
|
delay(1000);
|
||
|
digitalWrite(12,0);
|
||
|
delay(1000);
|
||
|
digitalWrite(11,0);
|
||
|
delay(1000);
|
||
|
digitalWrite(10,0);
|
||
|
delay(5000);
|
||
|
digitalWrite(13,1);
|
||
|
digitalWrite(12,1);
|
||
|
digitalWrite(11,1);
|
||
|
digitalWrite(10,1);
|
||
|
delay(5000);
|
||
|
}
|