Struct SYN_Touch¶
Capacitive Touch Button Instance Context.
#include <syn_touch.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint16_t | baseline |
| uint16_t | current_val |
| uint16_t | hysteresis |
| bool | is_pressed |
| SYN_GPIO_Pin | pin |
| uint32_t | press_count |
| uint16_t | threshold |
Public Attributes Documentation¶
variable baseline¶
Dynamic baseline capacitance value
variable current_val¶
Current raw sample value
variable hysteresis¶
Hysteresis for press/release stability
variable is_pressed¶
True if touch button is pressed
variable pin¶
GPIO pin identifier
variable press_count¶
Total press count
variable threshold¶
Touch detection threshold Delta
The documentation for this class was generated from the following file src/syntropic/input/syn_touch.h