Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change color #5

Open
hpposch opened this issue Jan 30, 2019 · 4 comments
Open

Change color #5

hpposch opened this issue Jan 30, 2019 · 4 comments

Comments

@hpposch
Copy link

hpposch commented Jan 30, 2019

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 :)

@xiongyihui
Copy link
Contributor

@hpposch
Copy link
Author

hpposch commented Feb 11, 2019

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?

@HinTak
Copy link
Contributor

HinTak commented Mar 15, 2020

No, it would change it to reddish purple.

@HinTak
Copy link
Contributor

HinTak commented Dec 3, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants