New to the watch and wonder if there is a tutorial on programming the buttons.
I have followed the tutorial on Banglejs data storage poi logger and would like to use the buttons to register a poi on the move rather than use the screen and scroll down.
Any guidance appreciated.
Check setWatch function. https://www.espruino.com/Reference#l__global_setWatch
use BTN1/BTN2/BTN3 for pin to watch, and write your code in callback. remember that BTN2 does most of the watch framework like launch settings menu, and long hold BTN3 does simile to reset. So if you re-configure these buttons you may loose some of the bangjeJs watch functions and watch may respond with some unexpected things...
Thanks for that.
I will use btn 1 and write some code in the emulator first.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem