I am saving some data to flash using PROGMEM
int var1 = 34;
int var2= 32;
int var3=534;
PROGMEM prog_uint16_t SaveMem[] = {var1,var2,var3};
After that how do I fetch the data from the flash and reasign them to var1,var2,var3.
Example:
var1 = (code to fetch data from flash for var1)
var2 = (code to fetch data from flash for var2)
I am trying to save the variables to flash memory(var1,var2,var3) then I want to be able to load them from flash memory and reassign them to the variables. For example var1 =32 then is saved to flash memory. var1 is somehow changed to 56. Now I want to load the flash memory so var1 = 32 again. Basicly I am just trying to save to flash so when I power off the device the variables are still saved.
Is it possible to store an array or something in EEPROM to slow down the read/write limit from being reached. Because I have 13 values to save per write.