Poke
Set a deep sleep time out and poke when the user interacts with the device.
power.setDeepSleepTimeout(10000);
forever(function() {
power.checkDeepSleep();
pause(1000);
})
input.buttonD0.onEvent(ButtonEvent.Click, function () {
power.poke();
})
power
feature=power
feature=buttonD0