Skip to content
Guy McSwain edited this page Nov 4, 2019 · 8 revisions

Latest release = v1.4.0

New APIs

  • 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.

v1.3.0

New Feature

  • All APIs now support async/await and promises

New APIs

  • gpio.waveTxStop(cb)

API Enhancement

  • gpio.waveChainTx([{loop:x}, {waves: [wids]}, {delay:y}, {repeat:z}], cb)

v1.2.0

New APIs

  • gpio.glitchSet(steady, cb)
  • gpio.setServoPulsewidth(pulseWidth, cb)
  • gpio.getServoPulsewidth(cb)