from machine import Pin
from time import sleep
buzzer= Pin(2,Pin.OUT)
push_button=Pin(14,Pin.IN,Pin.PULL_UP)
while True:
button1=push_button.value()
# print(button1)
if button1==True:
buzzer.value(0)
else:
buzzer.value(1)