No description
Find a file
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
.github Fix release CI files 2022-11-04 09:12:45 -04:00
adafruit_led_animation speed bar generation by not querying pixels 2022-11-10 16:48:35 -06:00
docs Use year duration range for copyright attribution 2022-08-23 17:26:22 -04:00
examples Invert button logic 2022-02-11 10:35:11 -05:00
LICENSES Ran pre-commit, added licenses 2021-01-12 10:37:24 -05:00
.gitignore Update .gitignore 2022-04-21 18:52:46 -04:00
.pre-commit-config.yaml Update pylint to 2.15.5 2022-11-04 08:15:21 -04:00
.pylintrc Update .pylintrc for v2.15.5 2022-11-04 18:34:33 -04:00
.readthedocs.yaml Fixed readthedocs build 2022-02-15 11:56:59 -05:00
CODE_OF_CONDUCT.md Ran pre-commit, added licenses 2021-01-12 10:37:24 -05:00
LICENSE remove self from copyright, authors 2020-08-16 20:34:18 -04:00
optional_requirements.txt Switched to pyproject.toml 2022-08-08 22:05:54 -04:00
pyproject.toml Update version string 2022-08-16 18:09:15 -04:00
README.rst Added Black formatting badge 2022-08-02 17:00:43 -04:00
README.rst.license Ran pre-commit, added licenses 2021-01-12 10:37:24 -05:00
requirements.txt Switched to pyproject.toml 2022-08-08 22:05:54 -04:00

SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries

SPDX-License-Identifier: MIT