Program buttons

Posted on
  • Hi,
    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__glĀ­obal_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.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Program buttons

Posted by Avatar for user118216 @user118216

Actions