Non-blocking Neopixel library?

Status
Not open for further replies.

Jerware

Well-known member
Current WS2812 libraries block all interrupts while sending code to the LEDs, but I've spoken to Paul a couple times in person and he mentioned an approach that would remove this restriction. I just wanted to check in about that idea. I have a project that could use it, and it would be cool to reduce the number of microcontrollers needed (I currently use one to receive IR signals, and another to control LEDs, and they communicate via serial).
 
i would suggest you try out teensythreads, one loop will run fine while the other one takes care of your ws2812's

you may also look into changing interrupt priorities as well
 
Status
Not open for further replies.
Back
Top