That could be really good - it'd be nice to have a way to display more data than would fit in to RAM.
I also added a BMP Loader Module so you can load bitmaps off the SD card - it might be handy.
About file handling - yes, it's possible. You just use skip to skip ahead to the location you need. If you want to go backwards, you have to re-open the file. The reasoning is that it's something that can be applied to streams.
var f = E.openFile("file.bin","w+");
f.skip(10); // move 10 bytes
f.write("Hello");
f.close();
var f = E.openFile("file.bin","r");
f.skip(10); // move 10 bytes
console.log(f.read(5)); // read 5 bytes
f.close();
Note: something's broken in the build so the version that got uploaded is a few days old. I'll be updating 1v63 shortly though.
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.
That could be really good - it'd be nice to have a way to display more data than would fit in to RAM.
I also added a BMP Loader Module so you can load bitmaps off the SD card - it might be handy.
About file handling - yes, it's possible. You just use
skip
to skip ahead to the location you need. If you want to go backwards, you have to re-open the file. The reasoning is that it's something that can be applied to streams.Note: something's broken in the build so the version that got uploaded is a few days old. I'll be updating 1v63 shortly though.