|
PebbleOS
|
Raw button state. More...
Functions | |
| void | button_init (void) |
| Configure the button inputs. | |
| void | button_set_rotated (bool rotated) |
| Set whether the device is rotated by 180 degrees. | |
| bool | button_is_pressed (ButtonId id) |
| Check whether a button is pressed. | |
| uint8_t | button_get_state_bits (void) |
| Get the state of all buttons. | |
Raw button state.
Reads the button inputs directly, without debouncing; see Debounced buttons for button events.
| uint8_t button_get_state_bits | ( | void | ) |
Get the state of all buttons.
n set if the button with ButtonId n is pressed. | void button_init | ( | void | ) |
Configure the button inputs.
| bool button_is_pressed | ( | ButtonId | id | ) |
Check whether a button is pressed.
| id | Button to check. |
| void button_set_rotated | ( | bool | rotated | ) |
Set whether the device is rotated by 180 degrees.
While rotated, the up and down buttons are swapped.
| rotated | True if rotated by 180 degrees. |