Include
xc.h |
Constants
#define AO_BUTTON_COUNT (2)
The number of buttons.
Types
ao_buttons_t
typedef enum ao_buttons_t ao_buttons_t;
Represents buttons.
Enums
ao_buttons_t
enum ao_buttons_t
{
AO_BUTTONS_NONE = (0),
AO_BUTTONS_0 = (1 << 0),
AO_BUTTONS_1 = (1 << 1),
AO_BUTTONS_ALL =
AO_BUTTONS_0 |
AO_BUTTONS_1
};
AO_BUTTONS_NONE |
00 |
Represents no buttons. |
AO_BUTTONS_0 |
01 |
Represents button 0 at pin D10. |
AO_BUTTONS_1 |
10 |
Represents button 1 at pin D11. |
AO_BUTTONS_ALL |
11 |
Represents all buttons. |
Functions
ao_buttons
#define ao_buttons()
Gets the buttons that are pressed.