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)
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