Is it possible to use I2C devices with a WS2813 (or WS2812B)?
I’ve heard that fastled deactivates the interrupts for those strips to work, making I2C devices unusable.
Thanks for the help guys!
I don’t know if it has changed, but when I made a module to interface with the flight controller in my quadcopter I had to disable the part of fastled that disabled interrupts. I wasn’t going to risk a crash if data wasn’t being handled, and the occasional brief led glitch was an easy concession to make.
If you use an esp32 or esp8266, you can use dma without turning off interrupts. With a teensy 3.1 interrupts are re enabled in between led updates
If you’re in an environment where handling interrupts is vitally important, then you should really be using something like the APA102 - not Ws2812/13. (Or one of the arm/esp platforms where interrupts are available/usable)
Thanks all, I’ll go for apa102.
I tried a RGB i2c sensor and a ws2812 strip with esp8266 board and i had some weird effects…
Stephan, You need to use the I2S driver on esp8266, it uses dma
@Marc_MERLIN oh thanks. Well i obvioously missed that one. I’ll try it again.
@Stefan_stelb_Le_Bret look for ESP8266I2S in https://github.com/marcmerlin/Neopixel-IR which uses https://github.com/JoDaNl/esp8266_ws2812_i2s/
I have used my lsm9ds1 with sk6812 on a nano and it worked fine.