PebbleOS
Loading...
Searching...
No Matches
Functions
button.h File Reference
#include "button_id.h"
#include <stdbool.h>
#include <stdint.h>

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.