It reminded me a little bit of a problem @Sir_Indy and I solved. Reference this comment and the one following it: https://forum.espruino.com/conversations/375573/#16515419
It might not be what you need, didn't look through your code now. Might take a closer look tomorrow night 🙂
@Ganblejs 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.
It reminded me a little bit of a problem @Sir_Indy and I solved. Reference this comment and the one following it: https://forum.espruino.com/conversations/375573/#16515419
It might not be what you need, didn't look through your code now. Might take a closer look tomorrow night 🙂