EBCS Button Module
Enumeration Type Documentation
|
Button enumeration.
Definition at line 39 of file buttons.h. |
Function Documentation
void button_disable |
( |
void |
|
) |
|
|
|
Disable the polling of buttons.
Disable the polling of buttons. This operation must be called before sending LCD commands. Otherwise, these commands can disturb the button polling.
The accumulator interrupts (PA7) are disabled and the button timers are deactivated.
-
See also:
-
button_enable
|
void button_enable |
( |
void |
|
) |
|
|
|
Enable the polling of buttons.
Enable the polling of buttons. The button are scanned periodically and their state can be queried using button_get_pressed or by waiting for button events.
The accumulator interrupts (PA7) are enabled and the button timer is activated.
While buttons are polled, the application must not print on the LCD panel. It is necessary to disable the polling.
-
See also:
-
button_disable, button_get_pressed
|
button_mask_t button_get_pressed |
( |
void |
|
) |
|
|
void button_initialize |
( |
void |
|
) |
|
|
int button_is_enabled |
( |
void |
|
) |
|
|
Variable Documentation
struct event_def button_change_event
|
|
|
Button change event.
The button change event is triggerred each time the state of the buttons change. It is activated when a button is pressed or when a button is released.
Definition at line 124 of file buttons.h. |
|