EasyManuals Logo

Espressif ESP32-S2 User Manual

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #424 background imageLoading...
Page #424 background image
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 ~ 0xff
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 ~ 0xff
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_pad_denoise_t
Touch sensor denoise configuration
typedef struct touch_pad_waterproof touch_pad_waterproof_t
Touch sensor waterproof configuration
typedef struct touch_filter_config touch_filter_config_t
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 413
Submit Document Feedback
Release v4.4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Espressif ESP32-S2 Specifications

General IconGeneral
BrandEspressif
ModelESP32-S2
CategorySingle board computers
LanguageEnglish