Comments (3)
Hi,
You cannot use libgpiod and sysfs together.
Be careful not to use sysfs at all in your setup (/sys/class/gpio is deprecated).
- What is the output of gpiodetect and gpioinfo commands for the gpiochip and line you want ? It should be unused... otherwise you cannot use it with linux-gpio.java.
- Make sure users can access /dev/gpiochip* ... For example, you can create a gpiod group, then create a udev rule to grant access to users belonging to this group:
sudo groupadd gpiod
sudo usermod -G gpiod user
sudo echo '# udev rules for gpio port access through libgpiod
SUBSYSTEM=="gpio", KERNEL=="gpiochip0", GROUP="gpiod", MODE="0660"' > /etc/udev/rules.d/60-gpiod.rules
from linux-gpio.java.
Is it just about requestEvent
? Is everything else working fine?
from linux-gpio.java.
@pi-r-p thank you for the input. I changed the udev rule not to use sysfs for the gpio chip. Now it is working fine!
@helins Yes that was the only issue I faced but now it is resolved as @pi-r-p suggested.
Thank you for your help!
from linux-gpio.java.
Related Issues (3)
- event.getId() always returns 0 HOT 3
- java 8 target HOT 3
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 linux-gpio.java.