• I think I mentioned at https://forum.espruino.com/conversationsĀ­/390481/#17137641 but if you use setUI({mode:"clock"}) it automatically sets up the middle button to go to the launcher - maybe you didn't have that?

    I found that by rapidly clicking the button after a reboot, I could get it into a "Reset" screen.

    Yes - on 2v19 if you hold the button while booting into the watch you get a Recovery menu which makes life a lot easier!

    Leaving bluetooth on while you're developing would save you some pain though!

  • I think I mentioned at https://forum.espruino.com/conversationsĀ­/390481/#17137641 but if you use setUI({mode:"clock"}) it automatically sets up the middle button to go to the launcher - maybe you didn't have that?

    That would be it. And now I remember why it's missing. I'd originally added that wen I first started creating the watch face in the emulator, and it generated the following error:

    Uncaught ReferenceError: "setUI" is not defined
     at line 279 col 1 in app.js
    setUI({mode:"clock"});
    

    so I had to remove it again.

    Can I offer a suggestion to add a setUI() function to the emulator that does nothing. It would allow that line to be present, thus permitting developers to use the exact same code in the emulator as they are in production.

About

Avatar for Gordon @Gordon started