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

PhatBeat - Change colors of led display #19

Closed
eat-sleep-code opened this issue Dec 7, 2018 · 3 comments
Closed

PhatBeat - Change colors of led display #19

eat-sleep-code opened this issue Dec 7, 2018 · 3 comments

Comments

@eat-sleep-code
Copy link

eat-sleep-code commented Dec 7, 2018

I have setup the PhatBeat to play audio via Airplay using your tutorial:
http://learn.pimoroni.com/tutorial/sandyj/streaming-airplay-to-your-pi

Is it possible to change the colors of the vu-meter with this setup? I would like to go from white to blue (instead of green to red).

@eat-sleep-code
Copy link
Author

ANyone?

@memm74
Copy link

memm74 commented Feb 14, 2019

@eat-sleep-code I just got mine recently and have only tried vlcradio so far, but it looks as if you can set the colour using
phatbeat.set_pixel(x, r, g, b, channel=channel)
have a look in init.py, line 260+

@Gadgetoid
Copy link
Member

Behind the scenes the VU Meter is provided by pivumeter which is available here - https://github.com/pimoroni/pivumeter

It's been a long time since I touched this code, but always intended to migrate the actual VU display code into Python so it's easier for users to tinker with. There's a pending PR with this here- pimoroni/pivumeter#15

Unfortunately between the relative complexity of accomplishing this, and my unfamiliarity with my almost-three-year-old code (good grief), it's not going to be an easy task to walk you through the steps. But, do let me know if you're still trying to customise it.

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