Table of Contents

Pulse


Generate pulses with delay. This feature is great for controlling stepper motors.

  • Pulse.Set(pin, pulseCount, pulseDuration) - Generate pulses
  • pin: Pin number
  • pulseCount: Count of pulse will be generated
  • pulseDuration Length of pulse, in microsecond

The example below generate 400 pulses (step) on pin 6. Each pulse has 1000us (500us high and 500us low)

duelink.Pulse.Set(6, 400, 1000)