Closed razorne closed 2 years ago
I think you may be missing one or more transitive dependencies. The library JAR pi4j-library-pigpio-2..0.jar
appears to be missing. Also you must have the PiGpio library installed on your Rpi. See: https://abyz.me.uk/rpi/pigpio/download.html
Thank for your comment. Yes i was missing that dependency, by adding it, and executing my sh as sudo (otherwise i would have received another error) i was able to make my led blink
Yes, sudo
is required for using the PiGpio provider. I'm working on Linux GPIO (filesystem) providers now that don't require sudo
access.
Very nice! Thank you
Hello,
i am new to the library and i am trying to make a led blink. I have written a short code, copying from the tutorial page on official website.
I am not using maven nor gradle to package the program (i am a maven user, but for this project, for reasons that are not relevant, i cannot use it) I run the program directly from the raspberry, using this sh:
java - cp "/home/rasp/project35/lib/*:/home/rasp/project35/dist/*" com.project35.Main
And this is the content of those folders. As you can see i am using the version of dependencies that are used in the official getting started page.
I am using JDK 11 since i have installed the Raspberry Pi OS Full (32-bit), just like suggested by the getting started page.
Am i missing something here?
Thanks