You are reading a single comment by @Georg and its replies. Click here to read the full conversation.
  • This:

    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
    

    ??

About

Avatar for Georg @Georg started