Comments (5)
that would be awesome - its definitely something we'd like to do (and libgpiod is a lil faster too)
from adafruit_blinka.
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.
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.
is in generic_linux
from adafruit_blinka.
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)
- running the Windows platform. HOT 1
- ft232h output signal HOT 1
- ft232h with MLX90640 HOT 2
- Big Tree Tech BTT pi
- RPI 5 - python library piod: 'Chip' has no attribute 'OPEN_BY_NUMBER' HOT 24
- Breadboard HOT 2
- Arduino Uno HOT 5
- STM32F405 Feather Request
- rpi_ws281x not compatible with pi 5 HOT 4
- Exception thrown in Lockable.unlock() does not follow CircuitPython behavior
- Raspberry Pi5 RuntimeError: Timed out waiting for PulseIn message. Make sure libgpiod is installed. HOT 6
- Please add support for the OrangePiCM4 HOT 3
- board HOT 1
- Accessing digitalio CE0 results in a device busy error on Pi5 HOT 20
- RP2040 fails on valid UART pin combinations HOT 2
- AttributeError: pin instead of pin.id HOT 1
- NameError: name 'Pin' is not defined (ATOMIC PI) HOT 1
- Support for Feather M4 Express HOT 1
- Adafruit_CircuitPython_MCP2515 not working correctly
- Raspberry Pi 5 PWMOut needs updating to libgpiod HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_blinka.