LibDriver MULTI_BUTTON
Loading...
Searching...
No Matches
driver_multi_button_basic.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_MULTI_BUTTON_BASIC_H
38#define DRIVER_MULTI_BUTTON_BASIC_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
52
56#define MULTI_BUTTON_BASIC_DEFAULT_TIMEOUT 1000 * 1000
57#define MULTI_BUTTON_BASIC_DEFAULT_INTERVAL 5 * 1000
58#define MULTI_BUTTON_BASIC_DEFAULT_SHORT_TIME 1000 * 1000
59#define MULTI_BUTTON_BASIC_DEFAULT_LONG_TIME 3 * 1000 * 1000
60#define MULTI_BUTTON_BASIC_DEFAULT_REPEAT_TIME 200 * 1000
61#define MULTI_BUTTON_BASIC_DEFAULT_REPEAT_CNT 2
62#define MULTI_BUTTON_BASIC_DEFAULT_PERIOD 200 * 1000
63
74uint8_t multi_button_basic_init(uint8_t row, uint8_t col, void (*callback)(uint16_t row, uint16_t col, multi_button_t *data));
75
83uint8_t multi_button_basic_deinit(void);
84
90
94
95#ifdef __cplusplus
96}
97#endif
98
99#endif
driver multi_button interface header file
struct multi_button_s multi_button_t
multi_button structure definition
void multi_button_basic_process(void)
basic example process
uint8_t multi_button_basic_deinit(void)
basic example deinit
uint8_t multi_button_basic_init(uint8_t row, uint8_t col, void(*callback)(uint16_t row, uint16_t col, multi_button_t *data))
basic example init