/PIC Stuff/PICX_16F1829_Controller/defines.h |
---|
63,12 → 63,12 |
struct { |
unsigned BTN_L_N :1; |
unsigned BTN_L_E :1; |
unsigned BTN_L_S :1; |
unsigned BTN_L_W :1; |
unsigned BTN_R_E :1; |
unsigned BTN_R_N :1; |
unsigned BTN_R_E :1; |
unsigned BTN_R_S :1; |
unsigned BTN_R_W :1; |
unsigned BTN_L_S :1; |
unsigned BTN_L_W :1; |
}; |
uint8_t w; |
} BTN_STATUS; |
75,28 → 75,27 |
typedef union { |
struct { |
unsigned LED_A :1; |
unsigned LED_B :1; |
unsigned LED_C :1; |
unsigned LED_D :1; |
unsigned LED_1 :1; |
unsigned LED_2 :1; |
unsigned LED_3 :1; |
unsigned LED_4 :1; |
unsigned LED_5 :1; |
unsigned LED_6 :1; |
unsigned LED_7 :1; |
unsigned LED_8 :1; |
unsigned LED_N :1; |
unsigned LED_E :1; |
unsigned LED_S :1; |
unsigned LED_W :1; |
}; |
uint8_t w[2]; |
} LED_STATUS; |
uint8_t LED_0; |
uint8_t LED_1; |
uint8_t LED_2; |
uint8_t LED_3; |
uint8_t LED_4; |
uint8_t LED_5; |
uint8_t LED_6; |
uint8_t LED_7; |
uint8_t LED_N; |
uint8_t LED_W; |
uint8_t LED_E; |
uint8_t LED_S; |
uint8_t LED_A; |
uint8_t LED_B; |
uint8_t LED_C; |
uint8_t LED_D; |
} single; |
uint8_t w[16]; |
} LED_VALUES; |
void Pins_Read(BTN_STATUS *btns); |
void Leds_Write(LED_STATUS *leds); |
void Idle_Animation(void); |
#endif /* DEFINES_H */ |