From 4d65ff357bac1ff480161d16d7eddc52ceeb774f Mon Sep 17 00:00:00 2001 From: Nikolaos Ftylitakis Date: Thu, 29 Feb 2024 15:59:25 +0200 Subject: [PATCH] proper setup of pull up/down for ulp --- ports/esp32/esp32_ulp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ports/esp32/esp32_ulp.c b/ports/esp32/esp32_ulp.c index 34835c8eba79..6eb1bac150d9 100644 --- a/ports/esp32/esp32_ulp.c +++ b/ports/esp32/esp32_ulp.c @@ -119,7 +119,9 @@ STATIC mp_obj_t esp32_ulp_init_gpio(mp_obj_t self_in, mp_obj_t gpio_num_in) rtc_gpio_init(gpio_num); rtc_gpio_set_direction(gpio_num, RTC_GPIO_MODE_INPUT_ONLY); - rtc_gpio_pulldown_en(gpio_num); + + // no pull up/down is needed if shield is present with clear signal + rtc_gpio_pulldown_dis(gpio_num); rtc_gpio_pullup_dis(gpio_num); rtc_gpio_hold_en(gpio_num);