bLINK/Blink/Blink.ino

31 lines
518 B
Arduino
Raw Normal View History

2019-12-29 17:39:41 +00:00
const int L = 3;
const int I = 5;
2019-12-28 19:05:20 +00:00
const int N = 4;
2019-12-29 17:39:41 +00:00
const int K = 6;
2019-12-28 19:05:20 +00:00
void setup() {
pinMode(L, OUTPUT);
pinMode(I, OUTPUT);
pinMode(N, OUTPUT);
pinMode(K, OUTPUT);
}
void loop() {
2019-12-29 17:54:11 +00:00
singleOn(500);
}
void singleOn(int delayTime) {
2019-12-28 19:05:20 +00:00
digitalWrite(L, HIGH);
2019-12-29 17:54:11 +00:00
delay(delayTime);
2019-12-28 19:05:20 +00:00
digitalWrite(L, LOW);
digitalWrite(I, HIGH);
2019-12-29 17:54:11 +00:00
delay(delayTime);
2019-12-28 19:05:20 +00:00
digitalWrite(I, LOW);
digitalWrite(N, HIGH);
2019-12-29 17:54:11 +00:00
delay(delayTime);
2019-12-28 19:05:20 +00:00
digitalWrite(N, LOW);
digitalWrite(K, HIGH);
2019-12-29 17:54:11 +00:00
delay(delayTime);
2019-12-28 19:05:20 +00:00
digitalWrite(K, LOW);
}