Re: TrickLED - NeoPixel WS2812B Animation Library
Posted: Fri May 21, 2021 7:18 am
Please see the new forum at
https://forum.micropython.org/
Hi Sgar, YES that worked! I first downgraded to MP 1.14 and tried everything. I might have put all the files in the /lib sub_dir instead of giving trickLED its own sub-dir on the ESP32. Now the demo file runs without a hitch also on MP 1.15.Any luck with this?
Nice! If you achieve to change the brightness in animations please share!Primesty wrote: ↑Sun May 23, 2021 4:27 pmHi Sgar, YES that worked! I first downgraded to MP 1.14 and tried everything. I might have put all the files in the /lib sub_dir instead of giving trickLED its own sub-dir on the ESP32. Now the demo file runs without a hitch also on MP 1.15.Any luck with this?
Thanks a lot:)
Will do!Nice! If you achieve to change the brightness in animations please share!
Code: Select all
global_setings = {
'brightness': 200,
'interval': 60,
'palette': None,
'animation': None
}
Code: Select all
class AnimationBase:
""" Animation base class. """
def __init__(self, leds, interval=50, palette=None, generator=None, brightness=200, **kwargs):
"""
:param leds: TrickLED object
:param interval: millisecond pause between each frame
:param palette: color palette
:param generator: color generator
:param brightness: set brightness 0-255
:param kwargs: additional keywords will be saved to self.settings
"""
seems to inherit fromMappedAnimationBase
and Fire, in turn, inherits fromAnimationBase
you might be able to feed the brightness parameter into it.MappedAnimationBase