Button configuration structure. More...
#include <app_button.h>
Data Fields |
|
| uint8_t | pin_no |
| uint8_t | active_state |
| nrf_gpio_pin_pull_t | pull_cfg |
| app_button_handler_t | button_handler |
Detailed Description
Button configuration structure.
Field Documentation
| uint8_t app_button_cfg_t::active_state |
APP_BUTTON_ACTIVE_HIGH or APP_BUTTON_ACTIVE_LOW.
| app_button_handler_t app_button_cfg_t::button_handler |
Handler to be called when button is pushed.
| uint8_t app_button_cfg_t::pin_no |
Pin to be used as a button.
| nrf_gpio_pin_pull_t app_button_cfg_t::pull_cfg |
Pull-up or -down configuration.
- components/libraries/button/app_button.h