Removed armed LED

This commit is contained in:
Tanner Collin 2018-09-16 02:00:31 -06:00
parent bb52fcff93
commit fceacca2cf

View File

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