goodwatch/firmware/keypad.h

14 lines
297 B
C

/*! \file keypad.h
\brief Keypad driver.
*/
//! Scan the keypad.
unsigned int key_scan();
//! Initialize the keypad GPIO pins.
void key_init();
//! Gets the currently held button as ASCII. Don't use for typing.
char key_char();
//! Quickly checks to see if a key is pressed.
int key_pressed();