NeoPixel-KnightRider
NeoPixel-KnightRider copied to clipboard
In strips over 50, the speed slows
In strips over 50 pixels, the speed slows down to less than half the original speed once it reaches about the 50th LED. Set the speed to 0.
Hi @genregasm thanks for the heads up on this. It makes sense that the more pixels you add, the more time will be spent between updates performing calculations which will ultimately lag the motion.
There can probably be some optimization done to that code, and/or the speed could be modified based on the number of pixels used. This would take some time to test and characterize. If you can tell me the relative speed
values necessary to create the same larson motion between an 8 pixel strip and 64 or 128 pixel strip, it would be relatively trivial to add a scaling factor to the speed
based on these numbers. The size of the trail will effect things as well... so we'd need to take some measurements with longer and shorter trails.
It might just be easiest though to make those #define changes you suggested in issue #3 and handle things manually based on personal preference. Let me know if you are up to doing some of that testing ;-)