Coder Social home page Coder Social logo

Comments (5)

haggistech avatar haggistech commented on September 6, 2024

If you look at the automatic.py it has an example of setting colour. I have used mine to set the colour based on temperature so colour change does work :)

from fanshim-python.

Gadgetoid avatar Gadgetoid commented on September 6, 2024

Pull-ups aren't required for LED colour changes, so they should work on the Pi 4.

Are you seeing anything on your LED? It's possible that you have UART enabled (enable_uart=1 in your /boot/config.txt) but IIRC this shouldn't necessarily stop the LED from working.

Make sure your Fan SHIM is also making good contact with the GPIO pins, you might have to give it a little wiggle since the friction-fit header isn't perfect. Run python led.py in the examples folder while you do this, it may suddenly burst into life.

from fanshim-python.

jcx200 avatar jcx200 commented on September 6, 2024

I was able to get the LED working in terms of lighting up but it just stays green and I can't change it at all even with using the different examples within the example file

from fanshim-python.

Gadgetoid avatar Gadgetoid commented on September 6, 2024

Have you installed the Fan SHIM service? That will effectively take over control of the LED.

You might want to stop it with sudo systemctl stop pimoroni-fanshim.service and see if you wrestle control back.

If this is the case, I can add a command-line argument to disable LED ( and maybe even button? ) control in the service so you can do what you like in user scripts instead.

from fanshim-python.

jcx200 avatar jcx200 commented on September 6, 2024

Ok I think I have found the proper issue. You were right in saying that the SHIM isn't making proper contact. I think i need to find a wayto get the shim to sit properly because I can never get good contact on the pins. Any idea of the best way to mount it?

from fanshim-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.