rakeshpai/pi-gpio

How to control a PWM output

Opened this issue · 3 comments

whether gpio.write(18,0-1024,"output") is sufficient to change the duty cycle of the PWM output.???
I am trying to write the values from 0-1024 but the LED bulb is directly switching on if the value is greater than 1 and switching off if the value is 0. But I want to control the brightness by changing the duty cycle.

This isn't currently possible. However, it should be possible soon. There's a PR waiting for me elsewhere that should open up this possibility.

+1 would love to have this support.

Any update on the status of PWM support?