Just checking - but you also changed I2C1 to I2C2?
I2C1
I2C2
That is a strange one. .. and you're calling setTimeout(ledInit,2000); from E.on('init')?
setTimeout(ledInit,2000);
E.on('init')
Could you add a digitalPulse(LED1 to ledInit so you can make sure that it does get called at the time you think it should be called?
digitalPulse(LED1
ledInit
@Gordon 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.
Just checking - but you also changed
I2C1
toI2C2
?That is a strange one. .. and you're calling
setTimeout(ledInit,2000);
fromE.on('init')
?Could you add a
digitalPulse(LED1
toledInit
so you can make sure that it does get called at the time you think it should be called?