pwm

Periodically call two functions representing Mark and Space timings

Methods

init() static

Initially define both mark and space functions

restart() static

Update the mark and space periods

pwm(mark_ms, space_ms) inner

Periodically call two functions representing Mark and Space timings
Arguments:
  1. mark_ms (Number)
  2. space_ms (Number)

restart() inner

Update the mark and space periods
Periodically call two functions representing Mark and Space timings

Methods

init() static

Initially define both mark and space functions

restart() static

Update the mark and space periods

pwm(mark_ms, space_ms) inner

Periodically call two functions representing Mark and Space timings
Arguments:
  1. mark_ms (Number)
  2. space_ms (Number)

restart() inner

Update the mark and space periods