RTLib
|
Configuration for button. More...
#include <button.h>
Public Attributes | |
uint8_t | id |
ID of the button. More... | |
uint8_t | pullup |
Specifies default state of the button. More... | |
Configuration for button.
uint8_t Button::Config::id |
ID of the button.
See your device configuration header file to see which id corresponds to which hardware button.
uint8_t Button::Config::pullup |
Specifies default state of the button.
For STM32F1xx, specifies if the button is active high.
For STM32F4xx, specifies whether to use the internal pull-up/pull-down resistor. You may use the core::stm32f4::GPIO::Pullup enumeration or libopencm3 macros.