esp32/machine_touchpad: Use HW timer for FSM to enable wake-on-touch.
This commit is contained in:
parent
ab26553759
commit
887a6712c2
|
@ -69,6 +69,7 @@ STATIC mp_obj_t mtp_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_
|
|||
static int initialized = 0;
|
||||
if (!initialized) {
|
||||
touch_pad_init();
|
||||
touch_pad_set_fsm_mode(TOUCH_FSM_MODE_TIMER);
|
||||
initialized = 1;
|
||||
}
|
||||
esp_err_t err = touch_pad_config(self->touchpad_id, 0);
|
||||
|
|
Loading…
Reference in New Issue