Isn't it supposed to be:
digitalPulse(thePin,1,0);
to wait for the current pulse to finish? That's what the reference shows, at least.
Not sure if that's the issue here - if you caught the exception and printed it out, it might give you more information.
@DrAzzy started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Isn't it supposed to be:
digitalPulse(thePin,1,0);
to wait for the current pulse to finish?
That's what the reference shows, at least.
Not sure if that's the issue here - if you caught the exception and printed it out, it might give you more information.