I'm working on a project where I need to access some information about each day for 5 years in the future.
For example, for March 5, 2020:
03/05/2020, 15, 30, 50, 12, 11, 15, 50, 25, 18, 19
I'm using an ESP32, so have a bit of flash memory to work with. The data is read-only, I never need to write to it from the Arduino. I can format it however I'd like before flashing.
Two questions at the moment:
what's the best way to store that data? Doing a bit of research, I see that progmem can handle large data, and it writes to flash when the script is flashed to the ESP32. Is that the recommended way to go?
and what's the best way to look up the given day from my Arduino script? Is the best way to iterate through each line, and break when the correct date is found? Or is there some better way?
I'll be using a Real Time Clock so my Arduino will know the correct date, and the date it looks up will always be the current date.
Thanks for any help.