C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
struct_ConfigSwitchButton Struct Reference

These are the values used to configure a switch button (0) debounce_delay_us (1) long_release_delay_us (2) long_push_delay_us (3) time_out_delay_us (4) active_lo. More...

#include <switch_button.h>

Collaboration diagram for struct_ConfigSwitchButton:
Collaboration graph

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 returned, else a UIControlEvent::RELEASED_AFTER_SHORT_TIME is released.
 
uint long_push_delay_us = 1000000
 when a switch is pushed more than long_push_delay_us (in microseconds) a UIControlEvent::LONG_PUSH is returned.
 
uint time_out_delay_us = 5000000
 when a switch is released and not pushed again for time_out_delay_us (in microseconds) a UIControlEvent::TIME_OUT is returned.
 
bool active_lo = true
 if true, this indicates that when the switch is pushed, a logical LO (0) signal is read on GPIO pin.
 

Detailed Description

These are the values used to configure a switch button (0) debounce_delay_us (1) long_release_delay_us (2) long_push_delay_us (3) time_out_delay_us (4) active_lo.


The documentation for this struct was generated from the following file: