I see arduino libs for other microcontrollers that, in lieu of an external EEPROM, let you use a bit of the flash on the micro to store data alongside your code. Does that lib exist for Artemis? or is there another solution to store about 32 bytes?
I bumped into this, elsewhere, that seems to work:
#include <EEPROM.h>
void setup() {
// Serial Output
Serial.begin(115200); // initialize serial communication
while (!Serial); // wait until it is working
Serial.println("");
EEPROM.init();
Serial.println("EEPROM Read Test");
for (int i = 0; i < 255; i++) {
Serial.print(EEPROM.read(i));
Serial.print(" ");
}
Serial.println("\nEEPROM Read Test Done");
Serial.println("EEPROM Write Test");
for (int i = 0; i < 255; i++) {
EEPROM.write(i, i);
}
Serial.println("EEPROM Write Test Done");
}
void loop() {
// put your main code here, to run repeatedly:
}
Ah, I am glad you found a solution
Thanks for sharing. Happy holidays!