Skip to content
Guy McSwain edited this page Oct 3, 2019 · 8 revisions

Welcome to the pigpio-client wiki!

Latest release = v1.3.0

Compatible with pigpio release = V68+

  • pigpio V68+ required network socket keep-alive and dead peer removal.

v1.3.0


New Feature

  • All APIs now support async/await and promises

API - New

  • gpio.waveTxStop(cb) Aborts the transmission of the current waveform. This function is intended to stop a waveform started in repeat mode. waveTxStop

API - Enhancement

  • 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

v1.2.0


New APIs

  • 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

Clone this wiki locally