fix: reduce the consumption of touch sensor during deep sleep

This commit is contained in:
fuzhibo
2021-02-03 12:29:31 +08:00
parent bda9e1fda7
commit e310fb1393
11 changed files with 181 additions and 31 deletions

View File

@@ -629,3 +629,9 @@ esp_err_t touch_pad_sleep_channel_read_proximity_cnt(touch_pad_t pad_num, uint32
touch_hal_sleep_read_proximity_cnt(approach_cnt);
return ESP_OK;
}
esp_err_t touch_pad_sleep_channel_set_work_time(uint16_t sleep_cycle, uint16_t meas_times)
{
touch_hal_sleep_channel_set_work_time(sleep_cycle, meas_times);
return ESP_OK;
}