首页 文章

ESP8266 NodeMCU自定义构建WS2812不工作

提问于
浏览
0

我在ESP8266-12E上使用了这个版本

Vins-MacBook-Pro:esptool-master vin$ sudo ./esptool.py --port /dev/tty.SLAB_USBtoUART write_flash -fm qio 0x00000 nodemcu-dev-8-modules-2017-02-23-16-42-03-integer.bin 

NodeMCU custom build by frightanic.com
branch: dev
commit: b382a42057a264eba55e3781e18143f52e0b426e
SSL: false
modules: file,gpio,net,node,tmr,uart,wifi,ws2812
build   built on: 2017-02-23 16:41
powered by Lua 5.1.4 on SDK 2.0.0(656edbf)

1)当我在ESPlorer中执行以下内容时

ws2812.init()
ws2812.write(string.char(255, 0, 0, 255, 0, 0))

控制台显示以下&没有ws2812b像素点亮 .

ws2812.init()ws2812.write(string.char(255, 0, 0, 255, 0, 0))

2)当我在ESPlorer中执行以下内容时

ws2812.init()
ws2812.write(1,string.char(255, 0, 0, 255, 0, 0))

控制台显示以下&没有ws2812b像素点亮 .

ws2812.init()ws2812.write(1,string.char(255, 0, 0, 255, 0, 0))
stdin:1: bad argument #1 to writ

请指导,谢谢!

1 回答

  • 0

    请看我对这个问题的评论 . 它将帮助其他人遇到同样的问题 .

相关问题