Store Arrays in Flash - spiffs?
Posted: Tue Oct 25, 2016 5:05 pm
I have some large arrays in my sketch (24 bit image data) and I've run out of ram. I'm using a Wemos D1 R2.
It looks like using spiffs is the best way to store them - is that a good way to go?
I can save a text file into a data folder and read it in my sketch, output it to the serial monitor.
I'm wondering the best way to read the data into an array.
A text file means parsing each byte and converting it into numerical values. This seems inefficient.
I guess I could write the file from a sketch byte by byte - this would make it easier.
Any hints or pointers,
Thanks
It looks like using spiffs is the best way to store them - is that a good way to go?
I can save a text file into a data folder and read it in my sketch, output it to the serial monitor.
I'm wondering the best way to read the data into an array.
A text file means parsing each byte and converting it into numerical values. This seems inefficient.
I guess I could write the file from a sketch byte by byte - this would make it easier.
Any hints or pointers,
Thanks