jperkin / node-rpio

Raspberry Pi GPIO library for node.js
858 stars 124 forks source link

Led pulse not working #40

Open nevaldas opened 7 years ago

nevaldas commented 7 years ago

Hey,

Running the given example (without any modification) on Raspberry Pi 3 Model B lights the LED and does not pulse it. Using Piscope I see that value of 1 is set for the whole duration - from open to close, no matter what I pass to pwmSetData. I even tried to change Clock Divider values and set different range with no success. Any ideas what could be wrong? I use GPIO18 (pin 12), as used in the example.

Another thing - it would be really nice if one could set duty cycle and forget about setting those other values which I have no idea about yet. I have managed to pulse the led only with pigpio's (node.js) and RPi.GPIO's (python) duty cycle methods.

igna92ts commented 7 years ago

Currently having the same issue

mamacker commented 6 years ago

I'm having the same issue on a Raspberry PI 3 Model B, as well. Stays high, then shuts off when the pin is changed to an input.

I'll keep digging.