Syntax
enum
{
TOUCH_PAD_NUM0 = 0,
TOUCH_PAD_NUM1,
TOUCH_PAD_NUM2,
TOUCH_PAD_NUM3,
TOUCH_PAD_NUM4,
TOUCH_PAD_NUM5,
TOUCH_PAD_NUM6,
TOUCH_PAD_NUM7,
TOUCH_PAD_NUM8,
TOUCH_PAD_NUM9,
#if SOC_TOUCH_SENSOR_NUM > 10
TOUCH_PAD_NUM10,
TOUCH_PAD_NUM11,
TOUCH_PAD_NUM12,
TOUCH_PAD_NUM13,
TOUCH_PAD_NUM14,
#endif
TOUCH_PAD_MAX,
};
Values
Touch pad channel 0 is GPIO4(ESP32).
Touch pad channel 1 is GPIO0(ESP32) / GPIO1(ESP32-S2).
Touch pad channel 2 is GPIO2(ESP32) / GPIO2(ESP32-S2).
Touch pad channel 3 is GPIO15(ESP32) / GPIO3(ESP32-S2).
Touch pad channel 4 is GPIO13(ESP32) / GPIO4(ESP32-S2).
Touch pad channel 5 is GPIO12(ESP32) / GPIO5(ESP32-S2).
Touch pad channel 6 is GPIO14(ESP32) / GPIO6(ESP32-S2).
Touch pad channel 7 is GPIO27(ESP32) / GPIO7(ESP32-S2).
Touch pad channel 8 is GPIO33(ESP32) / GPIO8(ESP32-S2).
Touch pad channel 9 is GPIO32(ESP32) / GPIO9(ESP32-S2).
Examples
touch_pad_t is referenced by 4 libraries and example projects: