Abstract LEDs

This commit is contained in:
Tanner Collin 2018-11-07 19:11:41 -07:00
parent 5c2938ad4f
commit a12a24661b

View File

@ -124,8 +124,8 @@ void processLockState()
{ {
switch (lockState) { switch (lockState) {
case LOCK_OFF: case LOCK_OFF:
digitalWrite(GREEN_LED_PIN, LED_OFF); greenLEDOff();
digitalWrite(RED_LED_PIN, LED_ON); redLEDOn();
digitalWrite(RELAY_PIN, RELAY_OPEN); digitalWrite(RELAY_PIN, RELAY_OPEN);
break; break;
@ -138,8 +138,8 @@ void processLockState()
} }
break; break;
case LOCK_ARMED: case LOCK_ARMED:
digitalWrite(GREEN_LED_PIN, LED_OFF); greenLEDOff();
digitalWrite(RED_LED_PIN, LED_ON); redLEDOn();
digitalWrite(RELAY_PIN, RELAY_OPEN); digitalWrite(RELAY_PIN, RELAY_OPEN);
@ -161,8 +161,8 @@ void processLockState()
} }
break; break;
case LOCK_ON: case LOCK_ON:
digitalWrite(GREEN_LED_PIN, LED_ON); greenLEDOn();
digitalWrite(RED_LED_PIN, LED_OFF); redLEDOff();
digitalWrite(RELAY_PIN, RELAY_CLOSED); digitalWrite(RELAY_PIN, RELAY_CLOSED);