标签:read image mode dem node UNC function 开发 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)
按下按钮
提示:
打印多个是因为按钮抖动
ESP8266 LUA脚本语言开发: 外设篇-GPIO中断检测
标签:read image mode dem node UNC function 开发 gpio
原文地址:https://www.cnblogs.com/yangfengwu/p/12038000.html