I've been trying to get additional interactions compatible with bangle.js1, and i got success long press for buttons.
However I can't find info about how to use Bangle.on('touch' and time periods.
In the documentation there is:
Bangle.on('touch', function(zone,e) { ... }); will call the function
with e as an object containing {x,y} every time the screen is tapped
(when unlocked).
Besides "zone" and "e"(x,y) there is also "e.type" but i don't know what is its purpose.
Any idea to apply time events for touch tap?
Is the only possible solution at a lower level, such as digitalPulse(pin, value, time)?
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've been trying to get additional interactions compatible with bangle.js1, and i got success long press for buttons.
However I can't find info about how to use Bangle.on('touch' and time periods.
In the documentation there is:
Besides "zone" and "e"(x,y) there is also "e.type" but i don't know what is its purpose.
Any idea to apply time events for touch tap?
Is the only possible solution at a lower level, such as digitalPulse(pin, value, time)?