I don't have a Smartibot, but setting edge:'both' should trigger button press on press and release:
edge:'both'
setWatch(function(e) { if (e.state) print("Button pressed"); else print("Button released"); }, BTN, {repeat:true; edge:'both'});
Docs with more details
@AkosLukacs 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.
I don't have a Smartibot, but setting
edge:'both'
should trigger button press on press and release:Docs with more details