Custom Button structure to automate button setup. More...
#include <button.h>
Data Fields | |
gpio_num_t | gpio |
union { | |
gpio_pullup_t up | |
gpio_pulldown_t down | |
} | pull_sel |
void(* | func )(void *arg) |
Custom Button structure to automate button setup.
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::down |
void(* Button::func) (void *arg) |
gpio interrupt routine
gpio_num_t Button::gpio |
gpio number
union { ... } Button::pull_sel |
gpio configuration for pullup or pulldown
gpio_pullup_t Button::up |