C++ DevKit
C++ set of OOP library
|
These are the values used to configure a switch button delays related to action of the button (and generate IRQ) are expressed in microsecond, delays related to an absence of action on the button are expressed in milliseconds. (0) debounce_delay_us (1) long_release_delay_us (2) long_push_delay_ms (3) time_out_delay_ms (4) active_lo. More...
#include <rtos_switch_button.h>
Public Attributes | |
uint | debounce_delay_us = 10000 |
The time during which all changes in the switch state is ignored. | |
uint | long_release_delay_us = 1000000 |
if the switch is released after long_release_delay_us (in microseconds) a UIControlEvent::RELEASED_AFTER_LONG_TIME is sent, else a UIControlEvent::RELEASED_AFTER_SHORT_TIME is sent. | |
uint | long_push_delay_ms = 1000 |
when a switch is maintained pushed more than long_push_delay_ms (in milliseconds) a UIControlEvent::LONG_PUSH is sent. | |
uint | time_out_delay_ms = 5000 |
when a switch is released and not pushed again for time_out_delay_ms (in milliseconds) a UIControlEvent::TIME_OUT is sent. | |
bool | active_lo = true |
if true, this indicates that when the switch is pushed, a logical LO (0) signal is read on GPIO pin. | |
These are the values used to configure a switch button delays related to action of the button (and generate IRQ) are expressed in microsecond, delays related to an absence of action on the button are expressed in milliseconds. (0) debounce_delay_us (1) long_release_delay_us (2) long_push_delay_ms (3) time_out_delay_ms (4) active_lo.