jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs
BSD 2-Clause "Simplified" License
1.78k stars 622 forks source link

Parsing RGB values to a python script #question #413

Closed TieHaxJan closed 2 years ago

TieHaxJan commented 4 years ago

I wondered if there is the possibility to parse rgb values to a python script, to dynamically change the color of f.e. an color wipe animation. Thanks!

Romonaga commented 4 years ago

Python has some great utilities for this. https://docs.python.org/3/library/colorsys.html, I see no reason why you cant do this. I do it from c++ and php, nodejs......

Gadgetoid commented 2 years ago

Full Python library & examples are here - https://github.com/rpi-ws281x/rpi-ws281x-python