diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2018-11-02 12:26:09 +0100 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2018-11-02 12:26:09 +0100 |
commit | 9d8461c5ae9b7f2aee31b5426d03932ca76392c1 (patch) | |
tree | b1013e8967bd37c64837a2c88df7714f7ad86ae7 | |
parent | ce499a0ec8b6b81a5c4b848ee4e9685a4c5f87aa (diff) | |
download | Stickman-Costume-9d8461c5ae9b7f2aee31b5426d03932ca76392c1.tar.gz Stickman-Costume-9d8461c5ae9b7f2aee31b5426d03932ca76392c1.zip |
:bug: Wrong var-names
-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 +} |