button: HW timer-based driver for GPIO buttons
- struct button_s
#include <button.h>Button descriptor struct.
Public Members
- gpio_num_t gpio
GPIO.
- bool internal_pull
Enable internal pull-up/pull-down.
- uint8_t pressed_level
Logic level of pressed button.
- bool autorepeat
Enable autorepeat.
- button_event_cb_t callback
Button callback.
- void *ctx
User data.
- button_state_t state
- uint32_t pressed_time
- uint32_t repeating_time