Fat jar not including Analog Input? #205
Replies: 3 comments 2 replies
-
I need to add some more info; I am using a Raspberry pi Zero W running Raspberry Pi OS 32 bit, and Java 11 Azul Jdk. Everything else in the app works fine, I use JavaCV for taking images and some other stuff like FTP to upload images, gRPC to send info to a server. All those dependencies gets apparently included in the jar |
Beta Was this translation helpful? Give feedback.
-
Is this finding recognized as true? If so, are there any plans for fixing this? |
Beta Was this translation helpful? Give feedback.
-
As the Raspberry Pi GPIOs are digital-only, analog inputs are indeed not part of Pi4J V2 itself. But there are different solutions possible with additional converter chips. One possible approach with an MCP3008 is explained on https://pi4j.com/featured-projects/joystick-game/ |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have tried the example for building a fat jar using the maven-shade-plugin, and it does include other dependencies I use, but for pi4j I get the error "com.pi4j.provider.exception.ProviderNotFoundException" when I use library com.pi4j.io.gpio.analog.AnalogInput
My code is as follows:
import com.pi4j.Pi4J;
import com.pi4j.io.gpio.analog.AnalogInput;
public class temperaturePiGpio {
...
I saw an issue that was closed some time ago where the developer was using a digital input. Should the fat jar approach work also fpor me using the analog input?
Beta Was this translation helpful? Give feedback.
All reactions