c2x2key 2.0.0.0
|
2x2 key Click example More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
uint8_t | t1_state = 0 |
uint8_t | t1_state_old = 1 |
uint8_t | t2_state = 0 |
uint8_t | t2_state_old = 1 |
uint8_t | t3_state = 0 |
uint8_t | t3_state_old = 1 |
uint8_t | t4_state = 0 |
uint8_t | t4_state_old = 1 |
2x2 key Click example
2x2 Key click has a 4 button keypad and allows multiple key presses.
The demo application is composed of two sections :
Application Init performs Logger and Click initialization.
This example code demonstrates the usage of 2X2 Key Click board. Detects whether any of the keys is pressed where results are being sent to the UART terminal where you can track changes.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |
uint8_t t1_state = 0 |
uint8_t t1_state_old = 1 |
uint8_t t2_state = 0 |
uint8_t t2_state_old = 1 |
uint8_t t3_state = 0 |
uint8_t t3_state_old = 1 |
uint8_t t4_state = 0 |
uint8_t t4_state_old = 1 |