diff --git a/Sketches/sketch_oct25a-LEDDimming/sketch_oct25a-LEDDimming.ino b/Sketches/sketch_oct25a-LEDDimming/sketch_oct25a-LEDDimming.ino index 51d024b..daeb1c9 100644 --- a/Sketches/sketch_oct25a-LEDDimming/sketch_oct25a-LEDDimming.ino +++ b/Sketches/sketch_oct25a-LEDDimming/sketch_oct25a-LEDDimming.ino @@ -22,7 +22,7 @@ int LIGHT_LEVEL = 0; * Sett en standard verdi for "increment/decrement" av LED. * Dette er "dimmeverdien". */ -int INCDEC_VALUE = 1; +int INCDEC_VALUE = 5; /** * Lagre sist gang knappene ble trykket (ved hjelp av millis()). @@ -114,7 +114,7 @@ void loop() * Hvis den IKKE var trykt ned, sett LASTPRESS til currentTime for å tracke * millisekunder. */ - if (DEC_LASTSTATE == LOW) { + if (!DEC_LASTSTATE) { DEC_LASTPRESS = currentTime; DEC_LASTSTATE = true; }