Comments (1)
Apparently, the library already supports this.
I found this by looking at some kernel source: (https://elixir.bootlin.com/linux/v5.1.2/source/drivers/gpio/gpiolib.c).
Turns out you can request a gpio line in "AS-IS" mode. You can already do this in the library by something like:
config.consumer = "test"; config.request_type = GPIOD_LINE_REQUEST_DIRECTION_AS_IS; gpiod_line_request(line,&config,0);
Ideally, we should have a "simple" call for this as well, just like gpiod_line_request_output exists.
So never mind, it works already:)
from libgpiod.
Related Issues (20)
- Bus access for gpiod HOT 9
- autoreconf error, 2.69 HOT 3
- [python] LineRequest.reconfigure_lines problems HOT 2
- Error with GPIOD_LINE_REQUEST_FLAG HOT 4
- Why would libgpiod not detect rising edges on some pins, when sysfs was able to? HOT 15
- Edge event timestamp latency/jitter/accuracy HOT 2
- Apt upgrade HOT 1
- Publish wheels to pypi HOT 55
- Documentation issues HOT 4
- Thank you !
- help for gpiomon -p doesn't mention default unit of ms or that unit suffixes are allowed HOT 1
- gpiod_line_request_release --> application hangs HOT 3
- Wish/feature request: compile time evaluatable define(s) with API version HOT 6
- Obsolete libgpiod package on PyPI HOT 2
- Tag downloads from git.kernel.org seam broken HOT 2
- C++ bindings under LGPL-3.0 HOT 10
- How to set/toggle GPIO to input or output? HOT 16
- Increase GPIO read/write frequency HOT 3
- Feature request and observation HOT 1
- Persistent state HOT 2
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 libgpiod.