from machine import Pin
import time
btn2=Pin(4,Pin.IN,Pin.PULL_UP)
btn3=Pin(5,Pin.IN,Pin.PULL_UP)
pin4=Pin(12,Pin.OUT)
pin5=Pin(13,Pin.OUT)
while True:
a=btn2.value()
b=btn3.value()
print("按钮2:{}按钮3:{}".format(a,b))
if a==0:
pin4.value(1)
time.sleep(5)
pin4.value(0)
pin5.value(not b)
from *** import main
if __name__=="__main__":
main()