Try with an extra timeout
function ledInit() { digitalPulse(LED1,1,200); digitalPulse(LED2,1,400); } //function onInit() { E.on('init',function() { setTimeout(function() { // extra timeout USB.setConsole(); console.log('ini'); ledInit(); setTimeout(ledInit,2000); },1500); // extra timeout (try'd 1000 but did'n work) }); // end E.on() //} // end onInit() // onInit(); remove before save
@Frida started
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.
Try with an extra timeout