Al is absolutely correct. You read the whole data at once and the lase read is left in your variable.
So your program performs exactly as you wished! Although you might want something else...
So make the correction and please tell us what EEPROM you have.
If you scan more than 255 elements, then you may need to use Word variable instead of byte, in the future, that is.
Ioannis
Bookmarks