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

Not an issue, more a feature request #12

Closed
DaveB1977 opened this issue Jul 11, 2019 · 2 comments
Closed

Not an issue, more a feature request #12

DaveB1977 opened this issue Jul 11, 2019 · 2 comments

Comments

@DaveB1977
Copy link

Hi, I'm new to RPi and loving it, recently installed the shim to help with temps but was wondering if it would be possible to invert the LED colours, so that it's green when "cool" and red when the fan is active i.e too hot.

Steep learning curve with this gizmo and I'm slowly getting to grips with it :)

Ta.

@Trotter73
Copy link

Trotter73 commented Jul 12, 2019

Hi,

In /examples/automatic.py

Look for the following and try swapping the 0,255,0 / 255,0,0 values, I think they correspond to Red,Green,Blue

def update_led(state):
    if args.noled:
        return
    if state:
        fanshim.set_light(0, 255, 0)
    else:
        fanshim.set_light(255, 0, 0)

I cant see mine at the moment so cant test :)

@DaveB1977
Copy link
Author

Hi, spot on, worked a treat! Many thanks for your help.

I'm brand new to Pi, and having a blast working out the little things, hoping to get it up and running with OMV once it's updated for the Pi4 but having fun messing around.

Thanks again!

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

2 participants