Library for creating LED strip animations.
Project description
ledworks
ledworks is a Python library for creating LED strip animations.
Example animation class:
class HueComet(ledworks.Animation):
@ledworks.cycle(seconds=4.0, reverse=False)
def cycle(self, interval: float, led: ledworks.LEDContext):
color = ledworks.utils.hue(self.time * 1.61)
duration = randint(self.strip.count // 30, self.strip.count // 3) * interval
self.strip.assign(
led, ledworks.rate.fade(color=color, duration=duration)
)
And its output on the PygletPlayer:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ledworks-0.0.1.tar.gz
(4.7 kB
view hashes)