Fast method for writing to a Neopixel strip

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
User avatar
mathieu
Posts: 88
Joined: Fri Nov 10, 2017 9:57 pm

Fast method for writing to a Neopixel strip

Post by mathieu » Wed May 16, 2018 1:14 pm

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>

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Fast method for writing to a Neopixel strip

Post by Roberthh » Wed May 16, 2018 2:17 pm

You could try to decorate the fucntions update_buf() and fill_buff() as @micropython.native or @micropython.viper.

User avatar
mathieu
Posts: 88
Joined: Fri Nov 10, 2017 9:57 pm

Re: Fast method for writing to a Neopixel strip

Post by mathieu » Fri May 18, 2018 9:32 am

Thanks, I'll try that and report here.

Post Reply