https://nodemcu.readthedocs.io/en/master/modules/gpio/#gpiomode
测试引脚 GPIO0
gpio.mode(3,gpio.INT) function GpioDown() print("GpioDown") end gpio.trig(3,"down",GpioDown)
按下按钮
提示:
打印多个是因为按钮抖动
原文地址:https://www.cnblogs.com/yangfengwu/p/12038000.html
时间: 2024-11-05 14:39:35