goodwatch/firmware/keypad.h

14 lines
296 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 getchar();
//! Quickly checks to see if a key is pressed.
int key_pressed();