aboutsummaryrefslogtreecommitdiff
path: root/stmhal/boards/ESPRUINO_PICO/mpconfigboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/boards/ESPRUINO_PICO/mpconfigboard.h')
-rw-r--r--stmhal/boards/ESPRUINO_PICO/mpconfigboard.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/stmhal/boards/ESPRUINO_PICO/mpconfigboard.h b/stmhal/boards/ESPRUINO_PICO/mpconfigboard.h
index 885cedc89..d18abb908 100644
--- a/stmhal/boards/ESPRUINO_PICO/mpconfigboard.h
+++ b/stmhal/boards/ESPRUINO_PICO/mpconfigboard.h
@@ -66,6 +66,5 @@
#define MICROPY_HW_LED2 (pin_B12) // green
#define MICROPY_HW_LED3 (pin_B12) // green
#define MICROPY_HW_LED4 (pin_B12) // green
-#define MICROPY_HW_LED_OTYPE (GPIO_MODE_OUTPUT_PP)
-#define MICROPY_HW_LED_ON(pin) (pin->gpio->BSRRL = pin->pin_mask)
-#define MICROPY_HW_LED_OFF(pin) (pin->gpio->BSRRH = pin->pin_mask)
+#define MICROPY_HW_LED_ON(pin) (mp_hal_pin_high(pin))
+#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_low(pin))