8000 esp32/machine_touchpad: Use HW timer for FSM to enable wake-on-touch. · devmonkZA/micropython@887a671 · GitHub
[go: up one dir, main page]

Skip to content

Commit 887a671

Browse files
manningtdpgeorge
authored andcommitted
esp32/machine_touchpad: Use HW timer for FSM to enable wake-on-touch.
1 parent ab26553 commit 887a671

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/esp32/machine_touchpad.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ STATIC mp_obj_t mtp_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_
6969
static int initialized = 0;
7070
if (!initialized) {
7171
touch_pad_init();
72+
touch_pad_set_fsm_mode(TOUCH_FSM_MODE_TIMER);
7273
initialized = 1;
7374
}
7475
esp_err_t err = touch_pad_config(self->touchpad_id, 0);

0 commit comments

Comments
 (0)
0