Go Down

Topic: Saving arrays in EEPROM using ARDUINOMEGA (Read 6 times) previous topic - next topic

AWOL

#20
Mar 09, 2011, 11:05 pm Last Edit: Mar 09, 2011, 11:08 pm by AWOL Reason: 1
Yes it works perfectly.
"reference" is two bytes long, so 2 is printed

Did you mean to print the value of "reference" you read back from the EEPROM?

(Is your question mark key a bit sticky?)
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Daniel Formosa

Hehe no it ain't im just stupid lol.
Ok so it prints 2 since its 2 bytes....(and NO . mark key aint sticky :P)

Yes how can I print the value stored in the EEPROM?
tnx

AWOL

Quote
Yes how can I print the value stored in the EEPROM?

Code: [Select]
Serial.print(reference);
because that's the last value you read back
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Daniel Formosa

Yes but not like that!
I need to know the address and if it has been correctly stored in EEPROM...

AWOL

#24
Mar 09, 2011, 11:32 pm Last Edit: Mar 09, 2011, 11:38 pm by AWOL Reason: 1
Quote
I need to know the address and if it has been correctly stored in EEPROM

Only YOU know the address, but if you want to see what was read back, try
Code: [Select]
EEPROM_writeAnything(0, reference);
EEPROM_readAnything(0,serial);
Serial.print(serial);
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up