#include <button.h>
Data Fields | |
int32_t | pin |
button_active_state_t | active_state |
uint32_t | mode |
button_handler_t | button_handler |
uint16_t | debounce_time |
Button configuration structure.
button_active_state_t button_cfg_t::active_state |
pin state when button is pressed
button_handler_t button_cfg_t::button_handler |
Handler to be called when button is pushed.
uint16_t button_cfg_t::debounce_time |
debounce time in millisecond
uint32_t button_cfg_t::mode |
Pull-up or -down mode, such as PIN_MODE_INPUT, PIN_MODE_INPUT_PULLUP or PIN_MODE_INPUT_PULLDOWN
int32_t button_cfg_t::pin |
Pin to be used as a button. Its range is same as pin argument of rt pin device