from machine import Pin
import time
led = Pin(15, Pin.OUT)
button = Pin(14, Pin.IN, Pin.PULL_UP)
buzzer = Pin(17, Pin.OUT)
if button.value() == 1:
print("button pressed")
from machine import Pin
import time
led = Pin(15, Pin.OUT)
button = Pin(14, Pin.IN, Pin.PULL_UP)
buzzer = Pin(17, Pin.OUT)
if button.value() == 1:
print("button pressed")