I've been experimenting with Wiznet and I2C, and I've been caught out a couple of times by the lack of exception handling.
For example, with I2C, if there's something wrong it seems Espruino shows a "Timeout" error and the program aborts. I wanted to write a loop writing to the bus, so I could put a scope on it - and I don't seem to be able to do this at all, because the error is too fatal.
Anyone else have this problem? Right now I don't particularly want a full exception implementation - just something that allows transient errors to be non-fatal.
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.
Hi
I've been experimenting with Wiznet and I2C, and I've been caught out a couple of times by the lack of exception handling.
For example, with I2C, if there's something wrong it seems Espruino shows a "Timeout" error and the program aborts. I wanted to write a loop writing to the bus, so I could put a scope on it - and I don't seem to be able to do this at all, because the error is too fatal.
Anyone else have this problem? Right now I don't particularly want a full exception implementation - just something that allows transient errors to be non-fatal.
Thanks
Martin