Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7995

MicroPython • Re: Which pin is 'LED' connected to?

$
0
0
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.

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



Viewing all articles
Browse latest Browse all 7995

Trending Articles