Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Thanks, it works. My problem now is that I can only use EEPROM.write(); inside of a function and that prevents me from creating a global variable that all my function can use. Commented Jun 10, 2016 at 15:56
  • @IsabelAlphonse ??. The EEPROM.write() is a function and has to be used within a function. I think you need to start with the basics TBH. What I also think you mean is the read part. I have edited my answer to include the code you have written that works. Commented Jun 10, 2016 at 16:29
  • @IsabelAlphonse please can you mark one of the answers as accepted so that the StackExchange system doesn't bump it up in a few weeks and also to allow others to find it more easily when searching for the same problem. Commented Jun 10, 2016 at 17:13
  • Sorry, I forgot. Commented Jun 10, 2016 at 18:29
  • You said: "The EEPROM also doesn't take to being written or read to often as EEPROM can wear very quickly. " Datasheet says: Memory Flash Endurance: 10,000 Write/Erase Cycles, EEPROM Endurance: 100,000 Write/Erase Cycles. So EEPROM can be written ten times more often than the flash memory. Commented Apr 8, 2018 at 20:04