add skip calibration and wakeup channel, fix isr in sleep mode

This commit is contained in:
Kang Zuoling
2021-03-31 19:57:54 +08:00
committed by laokaiyao
parent 24e63fd2c0
commit 82bf6c0935
12 changed files with 612 additions and 12 deletions
@@ -144,6 +144,8 @@ static void tp_example_read_task(void *pvParameter)
}
}
#include "esp_sleep.h"
#include "hal/touch_sensor_ll.h"
void app_main(void)
{
if (que_touch == NULL) {
@@ -209,4 +211,11 @@ void app_main(void)
// Start a task to show what pads have been touched
xTaskCreate(&tp_example_read_task, "touch_pad_read_task", 4096, NULL, 5, NULL);
touch_ll_sleep_low_power(true);
while (1) {
esp_sleep_enable_timer_wakeup(100 * 1000);
esp_light_sleep_start();
vTaskDelay(pdMS_TO_TICKS(100));
}
}