I've looked at the layout and the tutorial for Bangle.js version 2. The main thing I need is to convert two toggle switches that in version 1 were BTN4 and BTN5. The toggle functions aren't changing; just the new location of the switches needs to be specified. In version 1, it was only this:
The watch was coded by someone who's left the project. Being a non-coder, I can't figure out the equivalent syntax for version 2. If anyone's interested in helping, I'll be grateful.
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 looked at the layout and the tutorial for Bangle.js version 2. The main thing I need is to convert two toggle switches that in version 1 were BTN4 and BTN5. The toggle functions aren't changing; just the new location of the switches needs to be specified. In version 1, it was only this:
setWatch(function(){ toggleTimeDigits(); }, BTN4, {repeat:true});
setWatch(function(){ toggleDateFormat(); }, BTN5, {repeat:true});
The watch was coded by someone who's left the project. Being a non-coder, I can't figure out the equivalent syntax for version 2. If anyone's interested in helping, I'll be grateful.