Replies: 9 comments 18 replies
-
No plans to support any SBC other than RPI. The Pi4j V2 statement is: [(https://pi4j.com/about/new-in-v2/)] v2 The following features have been removed from the Pi4J library: |
Beta Was this translation helpful? Give feedback.
-
Indeed, there are no plans. But... ;-) As you can see on the architecture diagram, https://pi4j.com/architecture/, the design with modules does allow the creation of a package for other platforms. Only Raspberry Pi was kept as the maintenance and testing grew exponentially with each platform, and we don't have enough "power" to handle this. Of course, if someone would stand up to take up this role for a specific platform, that decision can be reconsidered. |
Beta Was this translation helpful? Give feedback.
-
I wanted to "attempt" to create two new "matrix" images, and wanted to know if it is okay.
Perhaps in private email discuss. I would work in own repos and if you see anything you like can take it back. Should be easy merge at least for the matrix build part. Learned so much today reading all these projects. Quite impressive work! |
Beta Was this translation helpful? Give feedback.
-
I checked the source code to try and support the RK3588, (different board from the OPI 5 Plus but the same microcontroller). I had high hopes that the plugin system would make this possible. It's a great idea, but unfortunately, the plugin system alone isn't sufficient. The core library would need substantial modifications because many elements, like BoardInfo, BoardInfoHelper, and BoardModel, are heavily dependent on non-inheritable or non-extendable classes and enums. For example, GPIOD library could be re-used "as-is" on the RK3588 but there are multiple checks on the BoardModel (that cannot be extanded) and thus prevent the library from loading |
Beta Was this translation helpful? Give feedback.
-
I created a DRAFT pull request with a proposal on how the board model can be forced: Specifically this new method: And two additional generic board models: You would use it for setting the board model before creating the Pi4J context: # With default GpioD chip
BoardInfoHelper.current().setBoardModel(BoardModel.GENERIC);
var pi4j = Pi4J.newAutoContext();
# Or if you want to use a specific chip name
BoardInfoHelper.current().setBoardModel(BoardModel.GENERIC);
var pi4j = Pi4J.newContextBuilder()
.add(GpioDDigitalInputProvider.newInstance())
.setGpioChipName("gpiochip2")
.build(); @AlexR1973 @Son-kun @oliviercoma WDYT? |
Beta Was this translation helpful? Give feedback.
-
Good day my friends! In main method I have only 4 lines of code as you advised:
=== My module-info.java has next lines of code: Finally, after few hours of experiments I was able to compile and run it on Orange Pi zero 3 but with next exception: SLF4J(W): No SLF4J providers were found. Looks like BoardCodeReader class not found. When I try to include com.pi4j.boardinfo into module-info.java - Intellij can't see it :( : requires com.pi4j.boardinfo; // Can't see the module, but it is present in the lib folder My run.sh script is simple: lib folder contains the next set of Java libraries: What am I missing? I am stuck and continue at this point. Spent at least 5-6 hours with no luck :( |
Beta Was this translation helpful? Give feedback.
-
I added slf4j-simple to MAVEN pom.xml file and now get another exception: SLF4J(W): No SLF4J providers were found. |
Beta Was this translation helpful? Give feedback.
-
SLF4J(W): No SLF4J providers were found. All files in the lib library have good attributes: I almost ready to give up :( My project was running on Raspberry Pi 2 rev. B for hours without exceptions. On Orange Pi I can't even pass the context initialization in 5 lines of code example. I know that only Raspberry boards are supported, but why Java can't see classes from JAR files? |
Beta Was this translation helpful? Give feedback.
-
Anyway, thanks for your help and time Frank! It looks the same as Raspberry Pi OS I use on my Pi 2.0 rev B. According to the documentation RaspiOS for Orange Pi supports GPIO, I2C, 1Wire, etc. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, is there any plan to support other device than RPi?
I'm specifically asking about Orange Pi 5 Plus.
Currently RPi is behind in terms of computing power, so I'm forced to move to Orange and I'm trying to use GPIO on this SBC...
Beta Was this translation helpful? Give feedback.
All reactions