I’m using EEPROM to store some values, but it’s not quit working as I expected.
Now I’m just trying to view the contents of the first 10 addresses to see if everything is being set correctly, but this code seems to just cause the Spark to flash red until reset (although it verifies without errors):
uint8_t eepromAddress = 0;
String eepromString;
while(eepromAddress < 11) {
eepromString += "|";
eepromString += eepromAddress;
eepromString += "-";
eepromString += EEPROM.read(eepromAddress);
}
Spark.publish("EEPROM=", eepromString);