Can you get the directory listing if you have just the code to read a directory in there? Or is it that you have a lot of other code that is using up memory?
It seems that listing 40 files shouldn't usually use up anywhere close to all of the Puck's memory.
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.
Can you get the directory listing if you have just the code to read a directory in there? Or is it that you have a lot of other code that is using up memory?
It seems that listing 40 files shouldn't usually use up anywhere close to all of the Puck's memory.
If it's the case that you have lots of code there's probably a few things you can do to get memory usage down - http://www.espruino.com/Code+Style#otherĀ-suggestions would be a good start