pixel_ring
pixel_ring copied to clipboard
Change color
Hello, can i change the color of the patterns? for example when i call pixel_ring.think() i want the leds in green and not in blue.. where can i do this?
Thanks in advance :)
You can modify the file https://github.com/respeaker/pixel_ring/blob/master/pixel_ring/pattern.py
Ok i already thought about this.. So for example: def listen(self): pixels = [0, 255, 0, self.brightness] * self.pixels_number
self.show(pixels)
Would this change the think action to green?
No, it would change it to reddish purple.
It is not documented, but the 4 numbers are [not-used, red, green, blue]
, as far as I know. I actually got a spinning rainbow working, so I think I am correct.