...I expect both are writing/reading to/from I2C address 0x60?
...could be some timing issue... since it/example interferes w/ upload.
Put code in the onInit(){ ... } function and add this as last line (do plain upload w/o save()):
onInit(){ ... }
setTimeout(onInit,999);
It's a bad practice in Espruino to make (more complex initialization and communication code execute while upload is still going on...
...and pls share all code since we do not all your setup... (I just assumed it is invoked while upload is still going on).
@allObjects 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.
...I expect both are writing/reading to/from I2C address 0x60?
...could be some timing issue... since it/example interferes w/ upload.
Put code in the
onInit(){ ... }
function and add this as last line (do plain upload w/o save()):It's a bad practice in Espruino to make (more complex initialization and communication code execute while upload is still going on...
...and pls share all code since we do not all your setup... (I just assumed it is invoked while upload is still going on).