PWM provider not found
See original GitHub issueHello, after a few days of not touching my project I came to this error which seemingly happened out of nowhere despite it working numerous times before,
com.pi4j.provider.exception.ProviderNotFoundException: Pi4J provider [pigpio-pwm] could not be found. Please include this 'provider' JAR in the classpath.
I have not made any changes to the code that “breaks” my program, and it is actually taken right from the pi4j website:
public static com.pi4j.io.pwm.PwmConfig buildPwmConfig(Context pi4j, int address, PwmType type) {//pwm config builder return Pwm.newConfigBuilder(pi4j) .id(“BCM” + address) .name(“Buzzer”) .address(address) .pwmType(type) .provider(“pigpio-pwm”) .initial(0) .shutdown(0) .build(); }
Issue Analytics
- State:
- Created a year ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Issue with PWM configuration ("unable to load health data ...
Hello, I have been trying to setup PWM along with LDAP, but I am running into the error: "unable to load health data...
Read more >No hardware PWM's on all GPIO · Issue #31 · Pi4J/pi4j-v2
Hi! Just started with Pi4J 2.0 and I got an error. 2020-07-10 15:44:02 gpioHardwarePWM: bad gpio for PWM (3) [http-nio-8080-exec-5] WARN ...
Read more >PWM not working - Infineon Developer Community
Hi, I recently implemented PWMhl module on my device (Tc222L) . Pwm init without any failures, but it does not works at all....
Read more >pwm - issue #244 - Google Code
I uninstalled the application and I installed it again and I'm getting the following logs in Tomcat. I'm maybe missing some configuration but...
Read more >NI-DAQmx: M Series Pulse Width Modulation (PWM) not ...
I guess my other option is to find a PWM controller that uses the analog outputs. I have two of these as well...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi and thanks for your help No thanks it’s ok for me 😃
Anyway I would like to share my solution. Maybe it’s useful for others. I removed the pi4j-plugin-raspberrypi from my build.gradle
When I generated the jar, the line: “com.pi4j.plugin.pigpio.PiGpioPlugin” was inserted in the META-INF/services/com.pi4j.extension.Plugin then it worked
Probably this line was overwritten because of the other plugin
I’m a Maven user, so, unfortunately, my Gradle knowledge is very limited… The only Gradle we have in Pi4J was also contributed by others to prove it also works with Pi4J V2, see https://github.com/Pi4J/pi4j-example-minimal/blob/main/build.gradle.
BTW I’m very interested in the Maven output you mentioned about the clean up, can you add it to your comment?