-
라즈베리 파이 피코 W 내장 LED가 작동하지 않을 때라즈베리 파이 피코 2022. 11. 19. 13:31반응형
Pico W onboard LED not working
import machine import utime led_onboard = machine.Pin("LED", machine.Pin.OUT) while True: led_onboard.toggle() utime.sleep(.5)
https://datasheets.raspberrypi.com/picow/connecting-to-the-internet-with-pico-w.pdf
3.4. The on-board LED
Unlike the original Raspberry Pi Pico, the on-board LED on Pico W is not connected to a pin on RP2040, but instead to a GPIO pin on the wireless chip. MicroPython has been modified accordingly. This means that you can now do:import machine led = machine.Pin("LED", machine.Pin.OUT) led.off() led.on()
PICO와 PICO W의 내장 LED의 핀번호가 다르다.
반응형