Struct SYN_Keypad¶
Matrix Keypad Context. More...
#include <syn_keypad.h>
Public Attributes¶
| Type | Name |
|---|---|
| char | active_key |
| SYN_GPIO_Pin | cols |
| bool | is_pressed |
| char | keymap |
| char | last_raw_key |
| uint8_t | num_cols |
| uint8_t | num_rows |
| SYN_KeypadCallback | on_event |
| uint32_t | press_count |
| SYN_GPIO_Pin | rows |
| void * | user_ctx |
Detailed Description¶
Keypad State Context.
Public Attributes Documentation¶
variable active_key¶
Currently pressed debounced key
variable cols¶
Array of column GPIO pins
variable is_pressed¶
True if key currently down
variable keymap¶
Flat keymap character mapping
variable last_raw_key¶
Last scanned raw key
variable num_cols¶
Number of active column pins
variable num_rows¶
Number of active row pins
variable on_event¶
Key event callback function
variable press_count¶
Total keypress count
variable rows¶
Array of row GPIO pins
variable user_ctx¶
User callback context
The documentation for this class was generated from the following file src/syntropic/input/syn_keypad.h