import machine
import utime
button = machine.Pin(14, machine.Pin.IN)
#Pull down mode with button connecting to GND via the resistor
while True:
if button.value() == 1:
print("You pressed the button!")
utime.sleep(1)
import machine
import utime
button = machine.Pin(14, machine.Pin.IN)
#Pull down mode with button connecting to GND via the resistor
while True:
if button.value() == 1:
print("You pressed the button!")
utime.sleep(1)