Custom button_t structure. More...
#include <button.h>

Data Fields | |
| gpio_num_t | pin |
| union { | |
| gpio_pullup_t up | |
| gpio_pulldown_t down | |
| } | pull_sel |
| void(* | func )(void *arg) |
Custom button_t structure.
This structure allows the user to select its gpio pin, and set for pullup or pulldown base on configuration and lastly if the button will be read as input or interrupt.
| gpio_pulldown_t button_t::down |
| void(* button_t::func) (void *arg) |
gpio interrupt routine
| gpio_num_t button_t::pin |
gpio pin number
| union { ... } button_t::pull_sel |
gpio configuration for pullup or pulldown
| gpio_pullup_t button_t::up |