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

Fan software not working #101

Closed
Zelatrix opened this issue Jul 14, 2021 · 2 comments
Closed

Fan software not working #101

Zelatrix opened this issue Jul 14, 2021 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@Zelatrix
Copy link

I have a Pimoroni fan shim, and when it is plugged in, it works, and cools my Pi. But if I install the fanshim service, while I am able to control the LED using the led.py and led2.py appears to work, if I write my own scripts to control the LED or fan, or try to control it manually by running manual.py and issuing a command like echo "FF0000" > /tmp/fanshim doesn't affect the fan or the LED.

@Gadgetoid Gadgetoid added the documentation Improvements or additions to documentation label Feb 14, 2022
@Gadgetoid
Copy link
Member

You're probably getting fighting between the service trying to control the LED and your scripts. led.py and led2.py only win because they update the LEDs at 60FPS -

while True:
h = time.time() / 25.0
r, g, b = [int(c * 255) for c in colorsys.hsv_to_rgb(h, 1.0, 1.0)]
fanshim.set_light(r, g, b, brightness=0.05)
time.sleep(1.0 / 60)

Install the service with the --noled option.

Looks like the README need updating to mention this.

@Gadgetoid
Copy link
Member

Closing in favour of #99 to track the documentation issues

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

No branches or pull requests

2 participants