Bug fix for incorrect door sensor logic
This commit is contained in:
parent
eb26fd8ff9
commit
ac9fbda27d
|
@ -98,7 +98,7 @@ void loop() {
|
|||
raw_color = analogRead(POT_COLOR); // Color (0-1024)
|
||||
always_on = (digitalRead(PIN_ALWAYS_ON) == HIGH); // Toggle button pressed == ALWAYS ON
|
||||
white = (digitalRead(PIN_WHITE) == HIGH); // Shorted pin to enable white color for LEDs
|
||||
door_open = (digitalRead(PIN_DOOR == LOW)); // SparkFun door sensor is indicating door is open (NO for door closed state, set as input_pullup so the logic is inverted)
|
||||
door_open = (digitalRead(PIN_DOOR) == HIGH); // SparkFun door sensor is indicating door is open (NO for door closed state, set as input_pullup so the logic is inverted)
|
||||
|
||||
// Set RGB array to values as appropriate
|
||||
if (white) {
|
||||
|
|
Reference in a new issue