diff --git a/firmware/firmware.ino b/firmware/firmware.ino index f52bac6..c6119d1 100644 --- a/firmware/firmware.ino +++ b/firmware/firmware.ino @@ -11,7 +11,6 @@ const String API_ROUTE = String("http://tools-socket.protospace.ca/api/lockout/" #define RELAY_PIN D1 #define ON_BUTTON_PIN D3 #define OFF_BUTTON_PIN D4 -#define ARMED_LED_PIN D5 #define ON_LED_PIN D6 #define OFF_LED_PIN D7 @@ -58,7 +57,6 @@ void setup() pinMode(RELAY_PIN, OUTPUT); pinMode(ON_BUTTON_PIN, INPUT_PULLUP); pinMode(OFF_BUTTON_PIN, INPUT_PULLUP); - pinMode(ARMED_LED_PIN, OUTPUT); pinMode(ON_LED_PIN, OUTPUT); pinMode(OFF_LED_PIN, OUTPUT); } @@ -118,14 +116,12 @@ void processLockState() { switch (lockState) { case LOCK_OFF: - digitalWrite(ARMED_LED_PIN, LED_OFF); digitalWrite(ON_LED_PIN, LED_OFF); digitalWrite(OFF_LED_PIN, LED_ON); digitalWrite(RELAY_PIN, RELAY_OPEN); break; case LOCK_ARMED: - digitalWrite(ARMED_LED_PIN, LED_ON); digitalWrite(ON_LED_PIN, LED_OFF); digitalWrite(OFF_LED_PIN, LED_ON); @@ -149,7 +145,6 @@ void processLockState() } break; case LOCK_ON: - digitalWrite(ARMED_LED_PIN, LED_ON); digitalWrite(ON_LED_PIN, LED_ON); digitalWrite(OFF_LED_PIN, LED_OFF);