Browse Source

Bug fix for incorrect door sensor logic

master
Mike C 6 years ago
parent
commit
ac9fbda27d
  1. 2
      src/src.ino

2
src/src.ino

@ -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) {

Loading…
Cancel
Save