Adafruit_CircuitPython_LED_.../adafruit_led_animation
Jeff Epler 914bb8060b
speed bar generation by not querying pixels
In a test this improved speed substantially, nearly doubling
the speed of the following test program
```python
pixels = neopixel.NeoPixel(pixel_pin, pixel_num, brightness=1, auto_write=False, pixel_order="RGB")
evens = helper.PixelMap(pixels, [(i,) for i in range(0, pixel_num, 2)], individual_pixels=True)
animation = RainbowChase(evens, 0, spacing=8)
t0 = adafruit_ticks.ticks_ms()
while True:
    for i in range(10):
        animation.animate(show=False)
    t1 = adafruit_ticks.ticks_ms()
    print(f"{10000/(t1-t0):.0f}fps")
    t0 = t1
```

Performance on Raspberry Pi Pico W:
Before: ~85fps
After: ~140fps

This also happens to make it compatible with an in-process PR that adds
a fast PixelMap-like class to the core, but which doesn't support
getitem.
2022-11-10 16:48:35 -06:00
..
animation speed bar generation by not querying pixels 2022-11-10 16:48:35 -06:00
__init__.py "Reformatted per new black version" 2022-03-29 18:15:55 -04:00
color.py Updating to use rainbowio. 2021-09-23 17:44:52 -04:00
grid.py Ran pre-commit, added licenses 2021-01-12 10:37:24 -05:00
group.py Merge pull request #100 from vm0824/fix-short-circuit-group-animate 2022-08-17 10:57:40 -04:00
helper.py Ran pre-commit, added licenses 2021-01-12 10:37:24 -05:00
sequence.py sequence: Add a function to play the previous animation 2022-08-22 15:35:27 +02:00