diff options
-rw-r--r-- | Stickman-Costume.ino | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Stickman-Costume.ino b/Stickman-Costume.ino index dfc7ad8..d05e645 100644 --- a/Stickman-Costume.ino +++ b/Stickman-Costume.ino @@ -47,7 +47,7 @@ void loop() { } } // If 'Adjust-button' is pressed - if (digitalRead(DIMPIN) == HIGH) { + if (digitalRead(IN_ADJ) == HIGH) { if (CDimDirection == 1) { CBrightness++; } if (CDimDirection == 0) { CBrightness--; } if (CBrightness >= 255) { CDimDirection = 0; } @@ -55,7 +55,7 @@ void loop() { } // Do animation-things - switch (var) { + switch (CMode) { case 0: // Static analogWrite(OUT_PWM, CBrightness); break; @@ -105,4 +105,4 @@ void strobe() { StrobeState = 1; setOutPwm(CBrightness); } -}
\ No newline at end of file +} |