Hi Everyone!
I read that the EEPROM Built into the Arduino has a Write/Erase Life Cycle of 100,000.
I was wondering if it has a Read Life Cycle as well?
Hi Everyone!
I read that the EEPROM Built into the Arduino has a Write/Erase Life Cycle of 100,000.
I was wondering if it has a Read Life Cycle as well?
No. Writing wears it out, not reading it.
So I can read from the eeprom say once every 1 second, and it will be fine?
Cuz I'm trying to save ram by minimizing the use of Variables.
Cuz I'm trying to save ram by minimizing the use of Variables.
What are you doing with the value that you read from EEPROM? Saving RAM might not actually be happening. Speed may be a issue, too. Reading from EEPROM is much slower than reading from RAM.
I'm using them with if statements.
Such as:
if (EEPROM.read(0) == 1) {
// do something
}
Should I use variables instead? Or what would you suggest?
People normally use variables.
OK, let's cut to the chase here. Rather than "does reading wear out the EEPROM?" or "how to save RAM?" ... how about posting the real problem? What are you doing? Why do you think you are running out of RAM?
Well I thought I was running out of ram because the code was doing strange things... But then I realized it was my stupidity.. lol
I ran across this in my code:
if (var = val) {
// do this
}
lol, so yeah, i fixed that and now I'm good!