@@ -17,17 +17,13 @@ uint8_t TOUCH_GPIOS[] = {4,/* 0,*/ 2, 15, 13, 12, 14, 27/*, 33, 32*/};
1717
1818#elif (CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3)
1919
20- #define TEST_TOUCH_CHANNEL (9 ) // 14
20+ #define TEST_TOUCH_CHANNEL (8 ) // 14
2121static touch_pad_t touch_list[TEST_TOUCH_CHANNEL] = {
22- TOUCH_PAD_NUM1, TOUCH_PAD_NUM2, TOUCH_PAD_NUM3, TOUCH_PAD_NUM4, TOUCH_PAD_NUM5, TOUCH_PAD_NUM6, TOUCH_PAD_NUM7,
23- TOUCH_PAD_NUM8, /* TOUCH_PAD_NUM9,*/ TOUCH_PAD_NUM10
24- // TOUCH_PAD_NUM11, //Wrong reading
25- // TOUCH_PAD_NUM12, //Wrong reading
26- // TOUCH_PAD_NUM13, //Wrong reading
27- // TOUCH_PAD_NUM14
22+ TOUCH_PAD_NUM1, TOUCH_PAD_NUM2, TOUCH_PAD_NUM3, TOUCH_PAD_NUM4, TOUCH_PAD_NUM5, TOUCH_PAD_NUM6, TOUCH_PAD_NUM7, TOUCH_PAD_NUM8
23+ /* TOUCH_PAD_NUM9, TOUCH_PAD_NUM10, TOUCH_PAD_NUM11, TOUCH_PAD_NUM12, TOUCH_PAD_NUM13, TOUCH_PAD_NUM14*/
2824};
2925
30- uint8_t TOUCH_GPIOS[] = {1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , /* 9, */ 10 /* , 11, 12, 13, 14*/ };
26+ uint8_t TOUCH_GPIOS[] = {1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 /* , 9, 10, 11, 12, 13, 14*/ };
3127
3228#define NO_TOUCH_GPIO 17
3329
@@ -123,7 +119,8 @@ void test_touch_read(void) {
123119
124120 // COMPARE PRESSED <-> UNPRESSED
125121 for (int l = 0 ; l < sizeof (TOUCH_GPIOS); l++) {
126- log_i (" Touch %d: %d -> %d" , TOUCH_GPIOS[l], touch_unpressed[l], touch_pressed[l]);
122+ // log_i("Touch %d: %d -> %d", TOUCH_GPIOS[l], touch_unpressed[l], touch_pressed[l]);
123+ Serial.printf (" Touch %d: %d -> %d" , TOUCH_GPIOS[l], touch_unpressed[l], touch_pressed[l]);
127124 }
128125 for (int l = 0 ; l < sizeof (TOUCH_GPIOS); l++) {
129126#if CONFIG_IDF_TARGET_ESP32
0 commit comments