pimoroni / fanshim-python

Python library for the Fan SHIM for Raspberry Pi
https://shop.pimoroni.com/products/fan-shim
MIT License
295 stars 85 forks source link

Fan software not working #101

Closed Zelatrix closed 2 years ago

Zelatrix commented 3 years ago

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 commented 2 years ago

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 - https://github.com/pimoroni/fanshim-python/blob/33abcde2d51944e6dcb3bc2ecbddb251f65eb79a/examples/led.py#L10-L14

Install the service with the --noled option.

Looks like the README need updating to mention this.

Gadgetoid commented 2 years ago

Closing in favour of #99 to track the documentation issues