• . . . . cont

    Reset Bangle by following instructions beneath heading 'Resetting without loading any code'

    ref https://www.espruino.com/Bangle.js+Getting+Started

    'You can now go to http://banglejs.com/apps , connect, then go to ‘About -> Remove All Apps’, re-install ‘Bootloader’ and a ‘Clock’ and you’re good to go.'

    Nope. Not good to go here. BTN2 still doesn't open a menu.

    Niether does E.showMenu().


    Reading over

    https://www.espruino.com/Bangle.js+Development

    Entering BTN2.read(); does in fact return true when the middle button is depressed and false otherwise.

    >BTN2.read()
    =false
    >BTN2.read()
    =true
    

    Entering

    setWatch(() => {
      E.showMessage("You\npressed\nthe middle\nbutton!");
      setTimeout(()=>g.clear(), 1000);
    }, BTN2);
    

    produces the following error:

    >E.getBattery()
    =100
    >setWatch(() => {
    :  E.showMessage("You\npressed\nthe middle\nbutton!");
    :  setTimeout(()=>g.clear(), 1000);
    :}, BTN2);
    =1
    Uncaught Error: Function "setLCDOffset" not found!
     at line 1 col 8
    Bangle.setLCDOffset(0);Bangle.setLCDMode("direct");g.clear()...
           ^
    in function called from system
    
About

Avatar for Robin @Robin started