function onInit () {
setDeepSleep(1);
setBusyIndicator(LED1);
setSleepIndicator(LED3);
var t;
setInterval(function () {
t= E.getTemperature();
}, 3000);
setWatch(flip, BTN, {repeat:true, edge:'both'});
function flip (a) {
digitalWrite(LED2, a.state);
}
}
Running onInit()...
Uncaught ReferenceError: "flip" is not defined
at line 10 col 12
setWatch(flip, BTN, {repeat:true, edge:'both'});
^
in function called from system
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.
This:
??