@allObjects made some code to handle this - there's a post on it here: http://forum.espruino.com/conversations/1781/
It might be quite fun to do it yourself though. Using setWatch it's pretty easy to measure the time between button presses and to set/cancel timeouts.
@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.
@allObjects made some code to handle this - there's a post on it here: http://forum.espruino.com/conversations/1781/
It might be quite fun to do it yourself though. Using setWatch it's pretty easy to measure the time between button presses and to set/cancel timeouts.