And doing short and long press is very easy:
setWatch(function(e){ var isLong = (e.time-e.lastTime)>0.4; // ... }, BTN, {repeat:true, debounce:50, edge:"falling"});
@Gordon 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.
And doing short and long press is very easy: