-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend Digital Input and Output implementations in LinuxFS #307
Comments
Hello Frank, :) I just tested the LinuxFS implementations. The do work on a raspberry pi 3, but I get the following error on a raspberry pi 5:
The file
... and created the DigitalOutput-instances using:
I would like to get pi4J running on a raspberry pi 5. Sadly pigpio got incompatible. |
Hi @alex9849 If you don't have a /sys/class/gpio file, then this means that a kernel module is not loaded. This would be something to do with the Raspberry Pi OS. Further the LinuxFS plugin doesn't use pigpio, just files exported by the kernel. Sadly i don't yet have a Rasberry Pi 5, so i can't test this out. Maybe you can check the Raspberry Pi forums for the kernel which needs to be loaded? Are you using the latest OS? Maybe you need to enable it in the raspi-config tool? |
Hi, I have a 5 but only did a very quick test with the minimal example. It looks like PiGpio doesn't work either - as expected based on some messages on tickets in the project, e.g. I will try more later, but agenda is still blocked the next days. |
Yes. pigpio got incompatible sadly. But I found a few things out. My kernel is okay. I do have a /sys/class/gpio file. That's not the problem. I just wanted to point out that the error happens even tough that file exists. I tested the DigitalOutput integration with LinuxFS on a raspberry pi 3 and a raspberry pi 5. It works on the Pi3, but not on the Pi5. The LinuxFS I2C integration works on both platforms. Maybe the format for the gpio files changed? Is the format documented somewhere? I digged a bit more into it. I couldn't really find anything regarding /sys/class/gpio, but I looks like that interface got deprecated: An alternative seem to be devices at /dev/gpiochip* and /dev/gpiomem* I also found an example: |
With version 2.4.0 of Pi4J, the LinuxFS plugin got extended to provide Digital Input and Output implementations. This is a first step, but not the "full package".
For instance, handling of PullUpDown Resistors is not implemented yet.
The text was updated successfully, but these errors were encountered: