Can epprom read = NULL

I am wondering if the epprom has never been written to before and you read a locaiton, would the value come back as NULL

if read.eeprom[1] == NULL then some event

Would this be a valid if statement?

I would say something you did not first initialize will not be NULL. It will/can be a random data at each address.

A better way to use the EEPROM emulated space is to do some kind of sanity check on the data stored there, like a checksum stored with the data. That way you can tell random data from good data.

1 Like

Great idea. Thanks

The emulated eeprom will return 0xFF if the address has never been written to before.