-
Notifications
You must be signed in to change notification settings - Fork 11
Home
Guy McSwain edited this page Nov 4, 2019
·
8 revisions
-
gpio.hardwarePWM(frequency, dutyCycle, callback)
Set the hardware PWM dutycycle (0-1000000) on the gpio. Only works with pins that support hardware PWM (12,13,18,19); max two channels available. PWM frequency is also specified - not likely to work above 30MHz though. Caution: This will stop all waveform generation.
- All APIs now support async/await and promises
gpio.waveTxStop(cb)
gpio.waveChainTx([{loop:x}, {waves: [wids]}, {delay:y}, {repeat:z}], cb)
gpio.glitchSet(steady, cb)
gpio.setServoPulsewidth(pulseWidth, cb)
gpio.getServoPulsewidth(cb)