import time
time.sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
led = Pin(2, Pin.OUT) # Connects to wokwi-led (green)
button1 = Pin(4, Pin.IN) # Connects to wokwi-pushbutton (1.r)
button2=Pin(13,Pin.IN)
while True:
if button.value(): # Check if the button is pressed
led.on() # Turn the LED on
else:
led.off() # Turn the LED off
sleep(0.1)