Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit da31968

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎tests/validation/touch/touch.ino

Lines changed: 5 additions & 5 deletions
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,7 +46,11 @@ 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

53-
#if CONFIG_IDF_TARGET_ESP32S2
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
53+
#elif 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
5656
#define INTERRUPT_THRESHOLD 30000

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /