You got me - I'm sorry. I missed the long press exiting an app and returning to the default clock. (Egg on face moment...)
I did do a setWatch() and listen for a button press and once detected I called load() and the current clock - that worked I just wasn't sure this was the correct way to do it - and moreover it assumes that the user has the same clock installed that I have. Which is a bad assumption.
How would I call the default clock if I wanted to listen for a specific button press?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi Robin
Again, I appreciate the rapid reply!
You got me - I'm sorry. I missed the long press exiting an app and returning to the default clock. (Egg on face moment...)
I did do a setWatch() and listen for a button press and once detected I called load() and the current clock - that worked I just wasn't sure this was the correct way to do it - and moreover it assumes that the user has the same clock installed that I have. Which is a bad assumption.
How would I call the default clock if I wanted to listen for a specific button press?
Cheers