Page 1 of 1

Fast method for writing to a Neopixel strip

Posted: Wed May 16, 2018 1:14 pm
by mathieu
Hello,

I'm currently driving a strip of 72 Neopixel LEDs (WS2812) from a pyboard using JanBednarik's ws2812 library [1]. I would like to know if there are other options which would provide faster refresh rates?

I've looked at aykevl's FastLED [2], but I believe that it accelerates the computation of animations but relies on "esp.neopixel_write()" to drive the LEDs.

Thanks,

- Mathieu

[1] <https://github.com/JanBednarik/micropython-ws2812>
[2] <https://github.com/aykevl/micropython/b ... /pixels.py>

Re: Fast method for writing to a Neopixel strip

Posted: Wed May 16, 2018 2:17 pm
by Roberthh
You could try to decorate the fucntions update_buf() and fill_buff() as @micropython.native or @micropython.viper.

Re: Fast method for writing to a Neopixel strip

Posted: Fri May 18, 2018 9:32 am
by mathieu
Thanks, I'll try that and report here.