Giter Club home page Giter Club logo

Comments (5)

ladyada avatar ladyada commented on July 21, 2024

that would be awesome - its definitely something we'd like to do (and libgpiod is a lil faster too)

from adafruit_blinka.

brennen avatar brennen commented on July 21, 2024

Hey @pdp7 - do you have any input on packaging / availability of libgpiod? I'm kind of in over my head on this, but it seems like anything we do with Blinka is going to require that it be trivially available on a standard Raspbian install, at minimum.

It looks like there'll eventually be a Debian package, but that presumably won't trickle through to Raspbian for quite a while.

Have thought about:

  • distributing a deb package - we've been down that road before and just didn't find it especially tenable long term. Even if we didn't have to maintain the package ourselves and could just piggyback on Debian work, it's one more complication for users and we could really stand to avoid the barriers to entry.
  • building wheels that contain library binaries - seems kind of gnar.
  • distributing libgpiod source with Adafruit_Blinka (or downloading at install time), compiling on install from PyPI. I know this is probably do-able (assuming no license issues), but really seems like it ought to be its own self-contained dependency.

Practically speaking, it'd probably be optimal until it's available in more distros if there were just a libgpiod package on PyPI that provided library and bindings... Any thoughts?

from adafruit_blinka.

ladyada avatar ladyada commented on July 21, 2024

done here #59
turns out there's no pullup support, which is makes it a poor substitute for well-written GPIO bindings, but its good for poorly-supported chips w/only sysfs
anywyas for now i just tell people to run the script on import failure. i think thats fine until libgpiod is shipped with

from adafruit_blinka.

ladyada avatar ladyada commented on July 21, 2024

is in generic_linux

from adafruit_blinka.

theyoyojo avatar theyoyojo commented on July 21, 2024

Hey, I've been working on a drop-in replacement for RPi.GPIO that uses libgpiod's python bindings as the underlying GPIO access mechanism instead of /dev/mem or the sysfs interface.

I see that this issue was closed long ago but I figured I'd mention this library's existence in case anyone here finds it useful.

Pending my latest pull request the library is feature complete if not very close to it, i.e. it completely re-implements the RPi.GPIO API as of RPi.GPIO version 0.7.0

Here is the repo: https://github.com/underground-software/python3-libgpiod-rpi

from adafruit_blinka.

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.