-
My code: 55 PiGpio piGpio = PiGpio.newNativeInstance(); When executing, it fails while trying to add PiGpioDigitalOutputProvider (Spi and I2c go flawlessly), because it doesn't find a field named "id" (lowercase): 2024-05-13 23:20:09,317 INFO [main] Pi4J: New context builder I tried to use RpiDigitalOutputProvider instead of PiGpioDigitalOutputProvider --> same error What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Ok, my fault. Sorry guys. |
Beta Was this translation helpful? Give feedback.
-
This AM I was going to reread this post and view your question and I saw you already resolved your problem. I don't know how you are adding V2 support, but I will mention the webpage https://pi4j.com/documentation/providers/ explains the available automatic loading of Providers as implemented in pi4j 2.5.0-SNAPSHOT/ |
Beta Was this translation helpful? Give feedback.
Ok, my fault.
I'm adding Pi4J V2 support to an app that can also run Pi4J V1 as legacy mode.
An exceeding V1 include in the V2 class was causing the issue.
Sorry guys.