Skip to content

Commit 3b0e96c

Browse files
committed
fix(ci): Fix touch test for esp32
1 parent 9cb63e2 commit 3b0e96c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/validation/touch/touch.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ uint8_t TOUCH_GPIOS[] = {4, 2, 15, 13, 12, 14, 27, 33, 32};
1919

2020
#define NO_TOUCH_GPIO 25
2121

22-
#define RELEASED_VALUE 75 //75+ read value to pass test
23-
#define PRESSED_VALUE 20 //20- read value to pass test
24-
#define INTERRUPT_THRESHOLD 40
25-
2622
#elif (CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3)
2723

2824
#define TEST_TOUCH_CHANNEL (12) //14
@@ -50,6 +46,10 @@ uint8_t TOUCH_GPIOS[] = {2, 3, 4, 5, 6/*, 7, 8, 9, 10, 11, 12 ,13, 14, 15*/};
5046
#define NO_TOUCH_GPIO 17
5147
#endif
5248

49+
#if CONFIG_IDF_TARGET_ESP32
50+
#define RELEASED_VALUE 75 //75+ read value to pass test
51+
#define PRESSED_VALUE 20 //20- read value to pass test
52+
#define INTERRUPT_THRESHOLD 40
5353
#if CONFIG_IDF_TARGET_ESP32S2
5454
#define RELEASED_VALUE 10000 //10000- read value to pass test
5555
#define PRESSED_VALUE 42000 //40000+ read value to pass test

0 commit comments

Comments
 (0)