Rasberry pi pico w

February 5, 2024, 11:39

.miller21

py
from machine import Pin
import time
led=Pin(15,Pin.OUT)
while True:
    CMD=input('What is Your Command? (ON/OFF/TOGGLE)')
    if CMD=='ON':
        led.value(1)
    if CMD=='OFF':
        led.value(0)
    if CMD=='TOGGLE':
        led.toggle()
just to help How do I fix it about red LED is not show of light up. Is there something wrong that I put it? I did fellow everything from guy YouTube.


oops.se

You have got an answer already

.miller21

Oh nvm I did fix it