diff --git a/Blink/Blink.ino b/Blink/Blink.ino index 5c73cfa..643f6c9 100644 --- a/Blink/Blink.ino +++ b/Blink/Blink.ino @@ -11,16 +11,20 @@ void setup() { } void loop() { + singleOn(500); +} + +void singleOn(int delayTime) { digitalWrite(L, HIGH); - delay(1000); // in ms + delay(delayTime); digitalWrite(L, LOW); digitalWrite(I, HIGH); - delay(1000); // in ms + delay(delayTime); digitalWrite(I, LOW); digitalWrite(N, HIGH); - delay(1000); // in ms + delay(delayTime); digitalWrite(N, LOW); digitalWrite(K, HIGH); - delay(1000); // in ms + delay(delayTime); digitalWrite(K, LOW); }