Avatar for Leo

Leo

Member since Sep 2022 • Last active Sep 2022
  • 1 conversations
  • 2 comments

Most recent activity

  • in Bangle.js
    Avatar for Leo

    Awesome, thank you @Ganblejs and @Gordon! That was exactly what I was looking for.

    Added

    Bangle.setUI("clock");
    

    to my code.

    Saved it to Storage (instead of to Flash).

    Added it to the launcher, and set it as watch face using Settings > Set Clock.

    Perfect!

  • in Bangle.js
    Avatar for Leo

    Hi Espruino community!

    I'm new to the BangleJS, and my question may be naiive.

    But how can I set the time on the watch if I'm running a custom application?

    I wrote a simple application that displays the time and some other data. I've uploaded this app using the Espruino IDE to the Flash memory of my BangleJS (version 1).

    Now the app runs on the watch. It also persists when I reboot the watch.

    However, when the battery runs out, and I re-charge, the time on the watch resets to (I guess) midnight of January 1st 1970. And with my app running in the foreground, I can't access the settings menu to set the correct time.

    What's the best way to handle that?

    Should I implement a "setting time and date" functionality into my app itself?

    Or do I just need to set up some event listener that says "If user presses button B, then display the settings menu"? So that the user can then set the time in the regular settings menu, and when he exists it, he's back inside my application.

    Grateful for any pointers.

Actions