E.on('init',...) should run just before onInit, but I didn't think there was anything particularly special about it otherwise.
E.on('init',...)
onInit
What if you remove the USB.setConsole? It could be that trying to set the console device to USB before USB has initialised causes problems?
USB.setConsole
@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.
E.on('init',...)
should run just beforeonInit
, but I didn't think there was anything particularly special about it otherwise.What if you remove the
USB.setConsole
? It could be that trying to set the console device to USB before USB has initialised causes problems?