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

MicroPython • The LED on my Raspberry Pi Pico W won't blink

$
0
0
Hi, I wanted to ask if anyone knew why the code works for me but the Pico W doesn't flash the LED? I am attaching the code here (MicroPython):

import machine
import utime

led_pin = machine.Pin(25, machine.Pin.OUT)

while True:
led_pin.value(1)
print("Code turned on LED")
utime.sleep(3)
led_pin.value(0)
print("Code turned off LED")
utime.sleep(3)

Statistics: Posted by Gsxt3ryo — Mon Jul 29, 2024 5:23 pm — Replies 1 — Views 24



Viewing all articles
Browse latest Browse all 4476

Trending Articles