Skip to content

Struct SYN_Touch

ClassList > 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

uint16_t SYN_Touch::baseline;

Dynamic baseline capacitance value


variable current_val

uint16_t SYN_Touch::current_val;

Current raw sample value


variable hysteresis

uint16_t SYN_Touch::hysteresis;

Hysteresis for press/release stability


variable is_pressed

bool SYN_Touch::is_pressed;

True if touch button is pressed


variable pin

SYN_GPIO_Pin SYN_Touch::pin;

GPIO pin identifier


variable press_count

uint32_t SYN_Touch::press_count;

Total press count


variable threshold

uint16_t SYN_Touch::threshold;

Touch detection threshold Delta



The documentation for this class was generated from the following file src/syntropic/input/syn_touch.h