mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
fix(touch_sens): fixed the oneshot scanning timeout issue in touch sleep example
Touch channel 7 (GPIO8) is pulled-up on the dev board
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
static const char *TAG = "touch_wakeup";
|
||||
|
||||
#define EXAMPLE_TOUCH_SAMPLE_CFG_NUM 1
|
||||
#define EXAMPLE_TOUCH_CHANNEL_NUM 3
|
||||
#define EXAMPLE_TOUCH_CHANNEL_NUM 2
|
||||
#define EXAMPLE_TOUCH_CHAN_INIT_SCAN_TIMES 3
|
||||
|
||||
// If you want to change the wake-up channels, please make sure the channel GPIOs won't conflict to the EXT wakeup GPIOs
|
||||
static int s_channel_id[EXAMPLE_TOUCH_CHANNEL_NUM] = {7, 8, 9};
|
||||
static int s_channel_id[EXAMPLE_TOUCH_CHANNEL_NUM] = {8, 9};
|
||||
|
||||
// Active threshold to benchmark ratio. (i.e., touch will be activated when data >= benchmark * (1 + ratio))
|
||||
static float s_thresh2bm_ratio[EXAMPLE_TOUCH_CHANNEL_NUM] = {
|
||||
|
||||
Reference in New Issue
Block a user