With the above solution I've been using a 'wake on tap' mechanism to get the Bangle.js 2 out of the locked state with a tap on the screen. With 2V09 firmware, this works flawlessly.
>process.version
="2v09.120"
>Bangle.on("tap",function(t){console.log("tap",t)})
=undefined
> // Tap on a locked Bangle.js 2
tap {
"dir": "back",
"double": false, "x": 0, "y": 0, "z": 1 }
>
>
I now have a Bangle.js 2 with 2V10 firmware. All of the above no longer works. How can I use the 'tap' event in 2V10 ?
>
>process.version
="2v10.89"
>Bangle.on("tap",function(t){console.log("tap",t)})
=undefined
> // Some taps here
>
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.
With the above solution I've been using a 'wake on tap' mechanism to get the Bangle.js 2 out of the locked state with a tap on the screen. With 2V09 firmware, this works flawlessly.
I now have a Bangle.js 2 with 2V10 firmware. All of the above no longer works. How can I use the 'tap' event in 2V10 ?