That will teach me to try to catch up on the bus to work! :-) Miss all sorts of things.
I'm not sure that I like getTimeToAlarm() returning undefined if the alarm is defined, but more than 1 day in the future. If the alarm is going to go off, then it should calculate when in all cases.
A minor thing - regarding the button labelled "Sleep" - is "Snooze" a more common term for that? That's what my clock radio says, anyway. Sample size of 1...
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.
That will teach me to try to catch up on the bus to work! :-) Miss all sorts of things.
I'm not sure that I like getTimeToAlarm() returning undefined if the alarm is defined, but more than 1 day in the future. If the alarm is going to go off, then it should calculate when in all cases.
A minor thing - regarding the button labelled "Sleep" - is "Snooze" a more common term for that? That's what my clock radio says, anyway. Sample size of 1...