-
Notifications
You must be signed in to change notification settings - Fork 11
Home
Guy McSwain edited this page Oct 3, 2019
·
8 revisions
- pigpio V68+ required network socket keep-alive and dead peer removal.
- All APIs now support async/await and promises
-
gpio.waveTxStop(cb)
Aborts the transmission of the current waveform. This function is intended to stop a waveform started in repeat mode.waveTxStop
-
gpio.waveChainTx([{loop:x}, {waves: [wids]}, {delay:y}, {repeat:z}], cb)
gpioWaveChain
Transmit a chain of waves represented by array of wave IDs[wids]
. The chain can have loops, be separated by delays and repeated by inclusion of option objects.- loop : x, begins a loop. x can be anything
- delay: y, insert of delay of y=0 to 65535 microseconds
- repeat: z, repeat loop z=0 to 65535 times or forever if z=true
-
gpio.glitchSet(steady, cb)
Sets a glitch filter (0-300000) on gpio in microseconds. Only effects notifications.gpioGlitchFilter
-
gpio.setServoPulsewidth(pulseWidth, cb)
Starts servo pulses on gpio. Pulsewidth can be set to 0 (off) and from 500 (most anti-clockwise) to 2500 (most clockwise). Be aware that you can damage your servo when setting a too high pulseWidth. A value of 1500 (mid-point) is a good starting point to check range of your servo.gpioServo
-
gpio.getServoPulsewidth(cb)
Returns the pulsewidth of gpio as argument to callback.gpioGetServoPulsewidth