@Gordon, what happens when sendCap() / tapMultiple() is re-invoked too early - before first one is done - and therefore two are running?
@tronic98776, @Gordon's running code is a good seed for implementing any command controller / command execution state machine using an array for the commands... I like it very much, especially the short form of being just two standalone functions.
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.
@Gordon, what happens when sendCap() / tapMultiple() is re-invoked too early - before first one is done - and therefore two are running?
@tronic98776, @Gordon's running code is a good seed for implementing any command controller / command execution state machine using an array for the commands... I like it very much, especially the short form of being just two standalone functions.