@Gordon, @oesterle, both of you, thanks again for your suggestions. Truly invaluable!
I've updated the article to reflect the code changes and added a second implementation that uses the short/long button press approach I initially thought was wrong.
@attilavago 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.
@Gordon, @oesterle, both of you, thanks again for your suggestions. Truly invaluable!
I've updated the article to reflect the code changes and added a second implementation that uses the short/long button press approach I initially thought was wrong.