I'm not sure I understand what you want? So when BTN2 is pressed you just want to write a single value (whichever is bigger out of X, Y or Z?).
Do you want BTN3 to exit the app completely and go back to the clock, or just to go back to the app's main menu?
@Gordon started
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.
I'm not sure I understand what you want? So when BTN2 is pressed you just want to write a single value (whichever is bigger out of X, Y or Z?).
Do you want BTN3 to exit the app completely and go back to the clock, or just to go back to the app's main menu?