The LED is on WL_GPIO0 not GPIO0. WL_GPIO0 is a GPIO connected to the WiFi/Bluetooth chip.
Use the named "LED" pin instead. It'll know how to tell the WiFi/Bluetooth chip to change the LED GPIO.
Use the named "LED" pin instead. It'll know how to tell the WiFi/Bluetooth chip to change the LED GPIO.
Code:
>>> import machine>>> led = machine.Pin("LED", machine.Pin.OUT)>>> led.off()>>> led.on()Statistics: Posted by trejan — Thu Feb 12, 2026 11:41 pm