Closed baptmqt closed 3 years ago
Pi4J V1 uses WiringPi under the hoods but has been deprecated. Version 2.52 is the last one and indeed will not support newer versions of the Pi-boards. But still, your board is recognized as a Pi 4B by WiringPi. Strange the Java code throws this error...
You don't need to switch to pi4j v2, just use the pi4j develop/1.4 branch. Furthermore there are branches of wiringPi version 1.60 ( https://github.com/eitch/wiringPi/tree/arm64) which work on Pi 4.
On Fri, 11 Dec 2020 at 08:23, Frank Delporte notifications@github.com wrote:
Pi4J V1 uses WiringPi under the hoods, but has been deprecated. Versio 2.52 is the last one and indeed will not support newer versions of the Pi-boards.
Maybe an idea to switch to https://v2.pi4j.com/ ?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Pi4J/pi4j/issues/512#issuecomment-743024215, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB35BR3P3RENNOLDF3WIW3SUHCILANCNFSM4UVIK3OA .
-- Robert von Burg eitch@eitchnet.ch dipl. Informatiker in Softwareentwicklung HF / pBac-Eng ODEC software development system & network administration
Hi,
You can use the workraound, I have described here : #510
Seeya Fred
That error definitely seems like an outdated version of WiringPi ... or it could be an older version of Pi4J where the WiringPi library was statically compiled. Either way, I have fully tested the GPIO inputs and outputs on RPi4B for the upcoming Pi4J v1.3 release. Everything is working properly and the Pi4J v1.3-SNAPSHOT build/artifacts are available now and the full release is coming in the next couple of weeks. Once caveat however, you must install the unofficial v2.60 of the WiringPi library available here: https://github.com/WiringPi/WiringPi
See:
Pi4J not working on Pi Model 4B V1.2 Revision : c03112 / SoC : BCM2711