You are reading a single comment by @Robin and its replies. Click here to read the full conversation.
  • Tue 2018.11.06

    Although I'll agree the accuracy isn't specified,

    https://www.espruino.com/Reference#l__global_digitalPulse

    the implication is millisecond(s) wide pulses.

    Have you tried using an array of pulse values (see description in link above) and just a single digitalPulse() to rule out whether setInterval() is adding unnecessary (likely) intermittent delay?

    Considering:

    'It uses a hardware timer to produce accurate pulses'

    For a 2msec pulse 4%-8% error is rather odd. . . .

About

Avatar for Robin @Robin started