adammhaile / RPi-LPD8806

DEPRECATED!!! Checkout the new library, BiblioPixel - Follow the linked website.
https://github.com/ManiacalLabs/BiblioPixel
69 stars 28 forks source link

speed improvement #18

Closed mrizvic closed 10 years ago

mrizvic commented 10 years ago

I need one LED to travel along the strip as fast as possible. I have 5m strip with 260 LEDs (130 LPD8806 chips). When I first tried with code from adammhaile's repo the led.update() execution time took about 70ms on my raspberrypi configuration. With following code modification I first build the whole spibuffer in RAM using for loop. After for loop finishes its only one write and flush operation. With this improvement the led.update() execution time dropped to about 3ms which I find great. Please comment that.

adammhaile commented 10 years ago

Awesome work. I would pull this in, but this version of the library will be deprecated soon. I've re-written it to address many of the issues like this (for example, I can updated a 600 pixel strip in less than 8ms). Stay tuned here. Hopefully will be out in the next month or two.