Looking at the guide lines to measure things - decay of a charge - is not the most enticing for Javascript... It would have to go low level to catch the times... may be with some help from @ClearMemory041063 his ideas outlined in Peeking at Espruino Board Timers 2, 3, 4, and 5 conversation... ...with a setWatch() implemented on timers Tx (---> @Gordon), it would become quite manageable... But may be @Gordon has the silver bullet that can dodge the timing constraints...
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.
Looking at the guide lines to measure things - decay of a charge - is not the most enticing for Javascript... It would have to go low level to catch the times... may be with some help from @ClearMemory041063 his ideas outlined in Peeking at Espruino Board Timers 2, 3, 4, and 5 conversation... ...with a
setWatch()
implemented on timersTx
(---> @Gordon), it would become quite manageable... But may be @Gordon has the silver bullet that can dodge the timing constraints...