The data logger program (above) does not even use A10?
No, but when USB is unplugged, Espruino automatically switches the console over to use it. I just tried randomly poking the board around A10 and memory usage rose - it could be the problem.
Please could you look at Serial1.available() and see if it reads nonzero? If you then type Serial1.read() the data will be read out of the buffer and memory usage will drop.
The buffer for Serial1 is 'only' 256 bytes or so so it won't ever stop your code from working. I'll see if I can do something about it though - perhaps by not storing the data unless someone has previously called Serial1.read/available
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.
No, but when USB is unplugged, Espruino automatically switches the console over to use it. I just tried randomly poking the board around A10 and memory usage rose - it could be the problem.
Please could you look at
Serial1.available()
and see if it reads nonzero? If you then typeSerial1.read()
the data will be read out of the buffer and memory usage will drop.The buffer for Serial1 is 'only' 256 bytes or so so it won't ever stop your code from working. I'll see if I can do something about it though - perhaps by not storing the data unless someone has previously called
Serial1.read/available