Skip to main content

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:

HueComet

Project details


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)

Uploaded Source

Built Distribution

ledworks-0.0.1-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page