Adafruit_CircuitPython_LED_Animation icon indicating copy to clipboard operation
Adafruit_CircuitPython_LED_Animation copied to clipboard

Gradient Animation Request

Open firepixie opened this issue 5 years ago • 4 comments

I'd love a gradient animation. I want to be able to select my colors (maybe 3-4, or maybe more for a whole palette). The colors should fade into each other seamlessly, and I want to be able to choose the period / number of LEDs per section. Then I'd want the whole thing to scroll along the strip and be able to choose the speed.

Gradient (pixels, speed=0.1, colors=(color.RED, color.BLUE, (0,200,10), 0XFF0000), period=5)

firepixie avatar Jun 12 '20 18:06 firepixie

@firepixie Do you have enough memory on the board(s) you want to use to import FancyLED? https://github.com/adafruit/Adafruit_CircuitPython_FancyLED

If yes, then I think this should be pretty easy to implement.

rhooper avatar Jun 26 '20 22:06 rhooper

Yes I believe so. Incorporating FancyLED would be perfect!

On Jun 26, 2020, at 3:49 PM, rhooper [email protected] wrote:

@firepixie https://github.com/firepixie Do you have enough memory on the board(s) you want to use to import FancyLED? https://github.com/adafruit/Adafruit_CircuitPython_FancyLED https://github.com/adafruit/Adafruit_CircuitPython_FancyLED If yes, then I think this should be pretty easy to implement.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation/issues/43#issuecomment-650437198, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNM2QSWCSPBUBQ6SDQSQR3RYUQXLANCNFSM4N4RDRJQ.

firepixie avatar Jul 01 '20 19:07 firepixie

Following up on this - any way to get some sample code on how to use FancyLED to make gradients? :)

firepixie avatar Aug 19 '20 15:08 firepixie

In this thermal camera project, I use FancyLED to make gradients. This is a link to a version that does not require the thermal camera, so you could be able to test it: https://github.com/dglaude/CircuitPython_MLX90640_PyGamer_Plus/blob/master/fake_mlx90640_pygamer%2Bsd.py

In the published version in the learn guide, I do something similar without FancyLED (the credit/link for the code sample I used): https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera/circuitpython-thermal-camera

I hope it help.

dglaude avatar Aug 19 '20 23:08 dglaude