button: HW timer-based driver for GPIO buttons
Typedefs
- typedef void (*button_event_cb_t)(button_t *btn, button_state_t state)
 Callback prototype.
- Param btn:
 Pointer to button descriptor
- Param state:
 Button action (new state)
Enums
Functions
- 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