DrAzzy
My problem was even simpler, just writing this in the IDE window:
while(true) {
I2C1.writeTo(0x26,1);
}
failed if the I2C was disconnected - the program stops with something that looks like a syntax error.
This isn't right, IMHO - a runtime communications failure should return an error code, not a system-stop!
@mgg1010 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.
DrAzzy
My problem was even simpler, just writing this in the IDE window:
while(true)
{
}
failed if the I2C was disconnected - the program stops with something that looks like a syntax error.
This isn't right, IMHO - a runtime communications failure should return an error code, not a system-stop!