You are reading a single comment by @sp and its replies.
Click here to read the full conversation.
-
Here's the documentation for the setWatch-function.
It seems to me that the code you pasted listens for a press of physical button BTN2 - which is only present on Bangle.js 1. If you change 'BTN2' to 'BTN1' I think it could work on Bangle.js 2 as well.
on Bangle.JS2 how can I add a button with label RESET to reset the maxZ value? I tried this code from the counter app but it doesn't work. I've added it after line 80.