print("Hello, Pi Pico!")
from machine import Pin
import utime
switch = Pin(0, Pin.IN, Pin.PULL_DOWN)
while True:
print(switch.value())
utime.sleep(0.1)print("Hello, Pi Pico!")
from machine import Pin
import utime
switch = Pin(0, Pin.IN, Pin.PULL_DOWN)
while True:
print(switch.value())
utime.sleep(0.1)