from machine import Pin
from utime import sleep
button = Pin(14, Pin.IN)
while True:
if button.value()== 1:
print("you pressed the button!")
sleep(1)
from machine import Pin
from utime import sleep
button = Pin(14, Pin.IN)
while True:
if button.value()== 1:
print("you pressed the button!")
sleep(1)