I have a pico connected to a ESP8266 development board and see the same memory leak problem you have found.
I added a couple of things and the leak seems to have disappeared completely (at least I think so - not really any clue of what a memory leak actually is!)
I have a 10uF electrolytic capacitor between Vcc and GND.
Also I removed the onInit() because I don't understand what that bit does?
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 .Neil,
I have a pico connected to a ESP8266 development board and see the same memory leak problem you have found.
I added a couple of things and the leak seems to have disappeared completely (at least I think so - not really any clue of what a memory leak actually is!)
I have a 10uF electrolytic capacitor between Vcc and GND.
Also I removed the onInit() because I don't understand what that bit does?
It's been running a for a while now, here's the console log.
Does this maybe help to pin down the leak?