Pi4J / pi4j-kotlin

Kotlin DSL for Pi4J V2
https://pi4j.com/kotlin/
Apache License 2.0
47 stars 1 forks source link

Pi5 and gpiod #11

Open edouardouvrard opened 4 months ago

edouardouvrard commented 4 months ago

Pi4j doesn't load gpiod when used with this dependencies :

implementation("com.pi4j:pi4j-ktx:2.4.0")
implementation("com.pi4j:pi4j-core:2.6.0")
implementation("com.pi4j:pi4j-plugin-raspberrypi:2.6.0")
implementation("com.pi4j:pi4j-plugin-gpiod:2.6.0")
implementation("com.pi4j:pi4j-library-gpiod:2.6.0")

This seems to always try to load pigpio and tell me that it's not available.

FDelporte commented 4 months ago

Can you try with

implementation("com.pi4j:pi4j-plugin-gpiod:2.6.0")
FDelporte commented 4 months ago

For example: https://github.com/Pi4J/pi4j-example-minimal/blob/main/build.gradle#L36

edouardouvrard commented 4 months ago

I have this in my dependencies

FDelporte commented 4 months ago

In your original question, you listed com.pi4j:pi4j-library-gpiod:2.6.0 but not com.pi4j:pi4j-plugin-gpiod:2.6.0

edouardouvrard commented 4 months ago

I have these 2 dependencies in my original question :

implementation("com.pi4j:pi4j-plugin-gpiod:2.6.0")
implementation("com.pi4j:pi4j-library-gpiod:2.6.0")
FDelporte commented 4 months ago

Ah, correct. Sorry, my mistake. Actually, only the plugin is needed as it includes the library, but I doubt this will be the cause. Can you share more log output to understand what could be going wrong?

@mirage22 is this similar to what you were talking about in Slack?

neuberfran commented 3 months ago

@FDelporte Pls give me Slack address for pi4j v2 kotlin

FDelporte commented 3 months ago

Hi, you can join the Slack here: https://join.slack.com/t/pi4j/shared_invite/zt-1ttqt8wgj-E6t69qaLrNuCMPLiYnBCsg