//! The user has just looked at their watch. Timers and animations may be started here.
function onExitSleep() {
Toybox.System.println("exit sleep");
Toybox.Attention.backlight(true);
}
//! Terminate any active timers and prepare for slow updates.
function onEnterSleep() {
Toybox.System.println("enter sleep");
Toybox.Attention.backlight(false);
}
It doesn't work for me. I get:
enter sleep
Permission required
Permission Required
Failed invoking <symbol>
Complete
Connection Finished
Closing shell and port
I don't think the Attention module needs any premissions.
Any ideas?