#1
from machine import Pin
from time import sleep
#2
print("go")
led_pin = Pin(15,Pin.OUT)
button_pin = Pin(0,Pin.IN,Pin.PULL_DOWN)
#3
while True:
button_state = button_pin.value()
led_pin.value(button_state)
sleep (0.1)
#1
from machine import Pin
from time import sleep
#2
print("go")
led_pin = Pin(15,Pin.OUT)
button_pin = Pin(0,Pin.IN,Pin.PULL_DOWN)
#3
while True:
button_state = button_pin.value()
led_pin.value(button_state)
sleep (0.1)