ESP8266 LUA脚本语言开发: 外设篇-GPIO中断检测
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)
按下按钮
提示:
打印多个是因为按钮抖动