49 #ifndef TIDM_CAPTIVATE_THERMOSTAT_UI_LEDS_H_
50 #define TIDM_CAPTIVATE_THERMOSTAT_UI_LEDS_H_
53 #include "Thermostat_UI_Demo.h"
61 #define UP_LED_POUT (P2OUT)
65 #define UP_LED_PDIR (P2DIR)
69 #define UP_LED_PIN (BIT0)
73 #define UP_LED_ON (UP_LED_POUT &= ~UP_LED_PIN)
77 #define UP_LED_OFF (UP_LED_POUT |= UP_LED_PIN)
81 #define UP_LED_TOGGLE (UP_LED_POUT ^= UP_LED_PIN)
89 #define DOWN_LED_POUT (P2OUT)
93 #define DOWN_LED_PDIR (P2DIR)
97 #define DOWN_LED_PIN (BIT1)
101 #define DOWN_LED_ON (DOWN_LED_POUT &= ~DOWN_LED_PIN)
105 #define DOWN_LED_OFF (DOWN_LED_POUT |= DOWN_LED_PIN)
109 #define DOWN_LED_TOGGLE (DOWN_LED_POUT ^= DOWN_LED_PIN)
117 #define SET_LED_POUT (P2OUT)
121 #define SET_LED_PDIR (P2DIR)
125 #define SET_LED_PIN (BIT6)
129 #define SET_LED_ON (SET_LED_POUT &= ~SET_LED_PIN)
133 #define SET_LED_OFF (SET_LED_POUT |= SET_LED_PIN)
137 #define SET_LED_TOGGLE (SET_LED_POUT ^= SET_LED_PIN)
145 #define HOLD_LED_POUT (P1OUT)
149 #define HOLD_LED_PDIR (P1DIR)
153 #define HOLD_LED_PIN (BIT0)
157 #define HOLD_LED_ON (HOLD_LED_POUT &= ~HOLD_LED_PIN)
161 #define HOLD_LED_OFF (HOLD_LED_POUT |= HOLD_LED_PIN)
165 #define HOLD_LED_TOGGLE (HOLD_LED_POUT ^= HOLD_LED_PIN)
173 #define FANAUTO_LED_POUT (P2OUT)
177 #define FANAUTO_LED_PDIR (P2DIR)
181 #define FANAUTO_LED_PIN (BIT5)
185 #define FANAUTO_LED_ON (FANAUTO_LED_POUT &= ~FANAUTO_LED_PIN)
189 #define FANAUTO_LED_OFF (FANAUTO_LED_POUT |= FANAUTO_LED_PIN)
193 #define FANAUTO_LED_TOGGLE (FANAUTO_LED_POUT ^= FANAUTO_LED_PIN)
201 #define FANON_LED_POUT (P1OUT)
205 #define FANON_LED_PDIR (P1DIR)
209 #define FANON_LED_PIN (BIT7)
213 #define FANON_LED_ON (FANON_LED_POUT &= ~FANON_LED_PIN)
217 #define FANON_LED_OFF (FANON_LED_POUT |= FANON_LED_PIN)
221 #define FANON_LED_TOGGLE (FANON_LED_POUT ^= FANON_LED_PIN)
229 #define HEAT_LED_POUT (P2OUT)
233 #define HEAT_LED_PDIR (P2DIR)
237 #define HEAT_LED_PIN (BIT4)
241 #define HEAT_LED_ON (HEAT_LED_POUT &= ~HEAT_LED_PIN)
245 #define HEAT_LED_OFF (HEAT_LED_POUT |= HEAT_LED_PIN)
249 #define HEAT_LED_TOGGLE (HEAT_LED_POUT ^= HEAT_LED_PIN)
257 #define COOL_LED_POUT (P1OUT)
261 #define COOL_LED_PDIR (P1DIR)
265 #define COOL_LED_PIN (BIT6)
269 #define COOL_LED_ON (COOL_LED_POUT &= ~COOL_LED_PIN)
273 #define COOL_LED_OFF (COOL_LED_POUT |= COOL_LED_PIN)
277 #define COOL_LED_TOGGLE (COOL_LED_POUT ^= COOL_LED_PIN)
UnitState
UnitState enumeration contains all valid states for the heating/cooling unit controlled by the thermo...
Definition: Thermostat_UI_Demo.h:79
void LEDs_updateStatus(FanState fanState, UnitState unitState, bool hold)
Updates the state of the button LEDs to match the thermostat state.
Definition: Thermostat_UI_LEDs.c:36
FanState
FanState enumeration contains all valid states for the fan controlled by the thermostat UI...
Definition: Thermostat_UI_Demo.h:70