Skip to content

PWM does not work #137

Answered by esemlak
esemlak asked this question in Q&A
Discussion options

You must be logged in to vote

Apparently, the config needs a provider specified:

        PwmConfig config = Pwm.newConfigBuilder(pi4j)
                .id("BCM" + address)
                .name("Buzzer")
                .address(address)
                .pwmType(PwmType.HARDWARE)
                .initial(0)
                .shutdown(0)
                .provider("pigpio-pwm")
                .build();

The example here came without https://pi4j.com/documentation/io-examples/pwm/

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by esemlak
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants