• Tue 2017.08.08
    @Gordon Thank you for the near immediate response. Yes using save() and USB.setConsole()

    The code module is rather large and nothing out of the ordinary. So I cut down in size to get the basic idea.

    Stripped of declarations and comments but the gist is as follows. Nothing earth shattering and E.on('init' is as in troubleshooting section referenced above.


    USB.setConsole();
    
    E.on('init', function() {
      //console.log("Hello World!");
      onInit();
    });
    
    function onInit() {
      startSequence();
    }
    
    var startSequence = function() {
    
      setTimeout( function() {  
        
        console.log("inside startSequence() setTimeout()");
        // tons of console.log() comments here and in other functions    
        clearLEDAll();
    
      }, DURATIONTest );
    }
    
    var clearLEDAll = function() {
    
      setTimeout( function() {  
        
        console.log("inside clearLEDAll() setTimeout()");
        // tons of console.log() comments here and in other functions    
    
      }, DURATIONClear );
    }
    


    Am wondering though if I should have say a five second delay timer on start up.


    UPDATE: Nope that didn't work and also tried moving USB.setConsole() inside init
    Not expecting anyone to debug this code, but I could u/l the entire file. Will need
    a couple of days to prettify the thousand lines though.

About

Avatar for Robin @Robin started