Btw, obvious code and code w/ comments / (inline) documentation is practically always the better code than what many would call 'better' in what ever aspect.
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.
Like your celebration light show.
Btw, obvious code and code w/ comments / (inline) documentation is practically always the better code than what many would call 'better' in what ever aspect.
For short / long button presses and combinations thereof and related actions / functions take a look at Software Buttons - Many buttons from just one hardware button. This almost-module alows you to configure timings.