Skip to content

Commit

Permalink
fix(ci): Fix touch test for esp32
Browse files Browse the repository at this point in the history
  • Loading branch information
P-R-O-C-H-Y committed Oct 11, 2024
1 parent 9cb63e2 commit 3b0e96c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/validation/touch/touch.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ uint8_t TOUCH_GPIOS[] = {4, 2, 15, 13, 12, 14, 27, 33, 32};

#define NO_TOUCH_GPIO 25

#define RELEASED_VALUE 75 //75+ read value to pass test
#define PRESSED_VALUE 20 //20- read value to pass test
#define INTERRUPT_THRESHOLD 40

#elif (CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3)

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

#if CONFIG_IDF_TARGET_ESP32
#define RELEASED_VALUE 75 //75+ read value to pass test
#define PRESSED_VALUE 20 //20- read value to pass test
#define INTERRUPT_THRESHOLD 40
#if CONFIG_IDF_TARGET_ESP32S2
#define RELEASED_VALUE 10000 //10000- read value to pass test
#define PRESSED_VALUE 42000 //40000+ read value to pass test
Expand Down

0 comments on commit 3b0e96c

Please sign in to comment.