Hi i really do not like posting again and again. but considering my previous example it kinda set me on the right path and i got the result quickly. what i wanna do this time is
-initialize a countdown timer everytime a specific button is pushed
-it will count down to 21 days on the 18th day it will execute a function
-save the updated value to eeprom
-and on every reset continue the countdown from that value.
i have searched a bit all i could find was the minutes timer. now the reason i did not follow those tutorials was that they did not have any other function to achieve or carry out. but i do. i have to measure the angle of the motor the temperature the humidity and the rtc so i thought how am i going to time that?
i read up some more and found the millis function. now that is all good and great but how am i going to save that value to eeprom? even if i do manage to do that. it gets updated so quickly it is going to destroy the eeprom in days.
i could create a case where when that button is pushed it starts executes that function and add the eeprom.read() function in the setup so that whenever i reset it reads it.
I was going to write my idea here but got confused in the middle. i am lost.
kindly suggest what i have to learn in order to achieve this task and keep the days passed in eeprom and not destroy it.
note: i have never used the eeprom.