Espressif ESP32-S2 Programming Manual page 424

Table of Contents

Advertisement

Chapter 2. API Reference
TOUCH_PAD_SLEEP_CYCLE_DEFAULT
Excessive total time will slow down the touch response. Too small measurement time will not be sampled
enough, resulting in inaccurate measurements.
Note The greater the duty cycle of the measurement time, the more system power is consumed.The number
of sleep cycle in each measure process of touch channels. The timer frequency is RTC_SLOW_CLK
(can be 150k or 32k depending on the options). Range: 0 ~ 0xffff
TOUCH_PAD_MEASURE_CYCLE_DEFAULT
The times of charge and discharge in each measure process of touch channels. The timer frequency is 8Mhz.
Recommended typical value: Modify this value to make the measurement time around 1ms. Range: 0 ~ 0xffff
TOUCH_PAD_INTR_MASK_ALL
All touch interrupt type enable.
TOUCH_PROXIMITY_MEAS_NUM_MAX
Touch sensor proximity detection configuration
TOUCH_DEBOUNCE_CNT_MAX
TOUCH_NOISE_THR_MAX
TOUCH_JITTER_STEP_MAX
Type Definitions
typedef struct
touch_pad_denoise
Touch sensor denoise configuration
typedef struct
touch_pad_waterproof
Touch sensor waterproof configuration
typedef struct
touch_filter_config
Touch sensor filter configuration
Enumerations
enum touch_pad_t
Touch pad channel
Values:
TOUCH_PAD_NUM0 = 0
Touch pad channel 0 is GPIO4(ESP32)
TOUCH_PAD_NUM1
Touch pad channel 1 is GPIO0(ESP32) / GPIO1(ESP32-S2)
TOUCH_PAD_NUM2
Touch pad channel 2 is GPIO2(ESP32) / GPIO2(ESP32-S2)
TOUCH_PAD_NUM3
Touch pad channel 3 is GPIO15(ESP32) / GPIO3(ESP32-S2)
TOUCH_PAD_NUM4
Touch pad channel 4 is GPIO13(ESP32) / GPIO4(ESP32-S2)
TOUCH_PAD_NUM5
Touch pad channel 5 is GPIO12(ESP32) / GPIO5(ESP32-S2)
TOUCH_PAD_NUM6
Touch pad channel 6 is GPIO14(ESP32) / GPIO6(ESP32-S2)
TOUCH_PAD_NUM7
Touch pad channel 7 is GPIO27(ESP32) / GPIO7(ESP32-S2)
TOUCH_PAD_NUM8
Touch pad channel 8 is GPIO33(ESP32) / GPIO8(ESP32-S2)
Espressif Systems
touch_pad_denoise_t
touch_pad_waterproof_t
touch_filter_config_t
413
Submit Document Feedback
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF