• 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 ifdefing 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 to jshardware.c and then doing an ifdef based on that would be a reasonably nice, flexible way of fixing it)

About

Avatar for Gordon @Gordon started