SHOW:
|
|
- or go back to the newest paste.
| 1 | /* button.h */ | |
| 2 | #ifndef BUTTON_H | |
| 3 | - | tydef enum |
| 3 | + | |
| 4 | - | {
|
| 4 | + | typedef enum {BUTTON_PRESSED, BUTTON_RELEASED} button_state_t;
|
| 5 | - | pressed |
| 5 | + | |
| 6 | - | not_pressed |
| 6 | + | |
| 7 | - | }state_button; |
| 7 | + | button_state_t button_get(void); |
| 8 | ||
| 9 | #endif | |
| 10 | - | state_button(void); |
| 10 | + |