Use correct pin numbers

This commit is contained in:
Georg Krause 2019-12-29 18:39:41 +01:00
parent 93be4258f4
commit 10405e8f76

View file

@ -1,7 +1,7 @@
const int L = 2; const int L = 3;
const int I = 3; const int I = 5;
const int N = 4; const int N = 4;
const int K = 5; const int K = 6;
void setup() { void setup() {
pinMode(L, OUTPUT); pinMode(L, OUTPUT);
@ -12,15 +12,15 @@ void setup() {
void loop() { void loop() {
digitalWrite(L, HIGH); digitalWrite(L, HIGH);
delay(1000); delay(1000); // in ms
digitalWrite(L, LOW); digitalWrite(L, LOW);
digitalWrite(I, HIGH); digitalWrite(I, HIGH);
delay(1000); delay(1000); // in ms
digitalWrite(I, LOW); digitalWrite(I, LOW);
digitalWrite(N, HIGH); digitalWrite(N, HIGH);
delay(1000); delay(1000); // in ms
digitalWrite(N, LOW); digitalWrite(N, LOW);
digitalWrite(K, HIGH); digitalWrite(K, HIGH);
delay(1000); delay(1000); // in ms
digitalWrite(K, LOW); digitalWrite(K, LOW);
} }