-
Sat 2021.09.18
reply to post #26
Yes, only integer. I noticed this.
post #29 For example, instead of 0.6ms, I see 0.96ms.
I'm not sure if you were aware of this linking reference @lshk
Adjacent to the heading: function digitalPulse
is a right facing arrow that when clicked on takes one to the source code for that function.
https://github.com/espruino/Espruino/blob/master/src/jswrap_io.c#L224
jsExceptionHere(JSET_ERROR, "Pulse Time given for digitalPulse is less than 0, or not a number");
I'm surprised the exception wasn't observed within the WebIDE. Maybe it bubbles up and requires a try/catch block wrapper around the digitalPulse() call.
Yes, only integer. I noticed this. But I hope this is just an example. I will try to find additional information.