首先要有git,这个在M3的ubuntu镜像中已经集成了
git clone https://github.com/BPI-SINOVOIP/BPI-WiringP……
期待已久的BPI-WiringPi for M3终于发布了,可以去github体验了
https://github.com/BPI-SINOVOIP/BPI-Wi……
两个灯分别是0和4号,具体资料可以查询这里
https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_ap……
dofile("web.lua") 执行后,浏览器输入IP,就可以操作板子上的灯了
……
网页开关灯的测试
led1 = 0
led2 = 4
gpio.mode(led1, gpio.OUTPUT)
gpio.mode(led2, gpio.OU……
好啦,搞定,目前还看不太懂lua,不知道添错会不会死掉
……
偷来了一段进阶代码
print("ShipID["..node.chipid().."] Starting...")
print("WiFi connecti……