最终还是要靠FastLED啊, 直接做好了Nodemcu的兼容.
FastLED的文档写得也很全面.
编译的时候有点儿问题, 不知道影响不影响.

In file included from D:\r\arduino\test2\FastLED_Blink\FastLED_Blink.ino:2:0:

C:\Program Files (x86)\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000

 #    pragma message "FastLED version 3.004.000"

                     ^

In file included from C:\Program Files (x86)\Arduino\libraries\FastLED\src/FastLED.h:65:0,

                 from D:\r\arduino\test2\FastLED_Blink\FastLED_Blink.ino:2:

C:\Program Files (x86)\Arduino\libraries\FastLED\src/fastspi.h:140:23: note: #pragma message: No hardware SPI pins defined.  All SPI access will default to bitbanged output

 #      pragma message "No hardware SPI pins defined.  All SPI access will default to bitbanged output"

                       ^

Executable segment sizes:


IROM   : 230192          - code in flash         (default or ICACHE_FLASH_ATTR) 


IRAM   : 27012   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...) 


DATA   : 1248  )         - initialized variables (global, static) in RAM/HEAP 


RODATA : 692   ) / 81920 - constants             (global, static) in RAM/HEAP 


BSS    : 25000 )         - zeroed variables      (global, static) in RAM/HEAP 


项目使用了 259144 字节,占用了 (24%) 程序存储空间。最大为 1044464 字节。
全局变量使用了26940字节,(32%)的动态内存,余留54980字节局部变量。最大为81920字节。

标签: none 阅读量: 2528

添加新评论