Giter Site home page Giter Site logo

Unable to set pin mode on pi5 about iot HOT 4 CLOSED

IamRewt avatar IamRewt commented on September 2, 2024
Unable to set pin mode on pi5

from iot.

Comments (4)

pgrawehr avatar pgrawehr commented on September 2, 2024

That's kind of expected, since we do not have full support for the pi 5 yet. You need to manually select the driver (either libgpiod or sysfs)

from iot.

IamRewt avatar IamRewt commented on September 2, 2024

There may have been a regression, related to the pi 5, with version 3.1.0 as the gpio seems to function normally in 3.0.0. The above code runs without error and properly reads the pins. I haven't tested all of the gpio pins but have tried several of them without issue.

Given the 5 is still fairly new, I can go back to testing with a 4 for now.

from iot.

pgrawehr avatar pgrawehr commented on September 2, 2024

We have added partial support for the Pi5 in 3.1.0 (IIRC), but you should get it to work by calling

var gpioController = new GpioController(new LibgpiodDriver(4));

from iot.

dotnet-policy-service avatar dotnet-policy-service commented on September 2, 2024

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

from iot.

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.