econjack:
Given these statements:
- EEPROM_stringwrite(11, "hello");*
- EEPROM_stringwrite(15, "world");*
Won't you end up with "hellworld"? Also, dump the String class, it wastes memory and the EEPROM routines actually become easier.
Delta_G:
Sure you will. You write "hello" at address 11. So 11 has the h, 12 has the e, 13 is the l, 14 is also an l and 15 is the o.Then you write "world" at address 15, where the o from "hello" is located. So you get a w at position 15, o at 16, r at 17, etc. As you can see, you're overwriting the o in "hello" with the w in "world".
Then you write "monster" at address 9, so you overwrite all the rest of hello. Let's see now you've got
9 m
10 o
11 n
12 s
13 t
14 e
15 r
16 o
17 r
18 l
19 dAt that point.
Oh no, 11 isn't the actual address that I'm storing it in EEPROM, its the address i'm assigning it to them, more like an identification number. Thanks econjack for the link ![]()