Yes, I'd totally sort out those other errors from the Espruino first.
Uncaught InternalError: Timeout on I2C Read Receive
Do you have I2C pullup resistors somewhere? I think I asked this on one of your other posts when you were getting the same error.
ERROR: Out of Memory!
As in the other post, I think 16.6ms interval for sending data is just too fast. It totally explains the increasing delay for responses (as the buffer increases) and the out of memory error.
When you get that error, execution gets interrupted, and I imagine it messes up the stream of data sent to the PC. Try it running at 30fps and see if you still get the error, then work back from there?
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.
Yes, I'd totally sort out those other errors from the Espruino first.
Do you have I2C pullup resistors somewhere? I think I asked this on one of your other posts when you were getting the same error.
As in the other post, I think 16.6ms interval for sending data is just too fast. It totally explains the increasing delay for responses (as the buffer increases) and the out of memory error.
When you get that error, execution gets interrupted, and I imagine it messes up the stream of data sent to the PC. Try it running at 30fps and see if you still get the error, then work back from there?