adafruit / Adafruit_CircuitPython_LED_Animation

CircuitPython helper library for LED colors and animations
MIT License
53 stars 43 forks source link

Restores min_intensity and max_intensity for Pulse animation and smoother transition option #116

Closed tylerwinfield closed 7 months ago

tylerwinfield commented 9 months ago

Restores support for the min_intensity and max_intensity values on both the Pulse and SparklePulse animations. Also introduces a 'breath' value (default 0) to give a duration to hold the minimum and maximum intensity during the animation for smoother transitions in pulse direction. eg. Pulse(led_strip, speed=0.01, color=(255, 255, 255), period=5, breath=0.5, min_intensity=0.3, max_intensity=0.8)

tylerwinfield commented 9 months ago

Fixes #53

tekktrik commented 8 months ago

It looks like the CI is failing due to it wanting to reformat some of the updated files. You can actually solve this issue by running the same tool locally and pushing those changes. I can take a look at the changes afterwards. You can find more information here: https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/check-your-code