(or actually adding an jshAccuratePulse function to jshardware.c and then doing an ifdef based on that would be a reasonably nice, flexible way of fixing it)
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.
That's really good to know! Using the nRF52 PPI with a spare timer would probably work really nicely for the pulses then.
The real gotcha is just that I'm trying to support a bunch of platforms with the same code, but actually just
ifdef
ing the relevant code for nRF52 wouldn't be too bad: https://github.com/espruino/Espruino/blob/master/src/jswrap_onewire.c#L54(or actually adding an
jshAccuratePulse
function tojshardware.c
and then doing anifdef
based on that would be a reasonably nice, flexible way of fixing it)