button - Driver for GPIO buttons with anti-jitter and auto repeat¶
- group button
ESP-IDF driver for simple GPIO buttons.
Supports anti-jitter, auto repeat, long press.
Copyright (c) 2021 Ruslan V. Uss unclerus@gmail.com
MIT Licensed as described in the file LICENSE
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.
-
typedef void (*button_event_cb_t)(button_t *btn, button_state_t state)¶