Supporting size again did not help.
I've a different hack ;-)
I'm using Storage to save some images data from GraphicsBuffer.
Creating the file was seperated from writing data.
//initialization of file storage
var st = require("Storage");
var fn = "b";
st.write(fn,'X',0,1024);
......
......
//write data to file
for(y = 0; y < height; y++){
st.write(fn,data_for_one_line,y * width); // write one line of graphics data
}
My hack is to remove write in initialization, and add size to write of first line.
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.
Supporting size again did not help.
I've a different hack ;-)
I'm using Storage to save some images data from GraphicsBuffer.
Creating the file was seperated from writing data.
My hack is to remove write in initialization, and add size to write of first line.