Hello,
I found this: https://forum.arduino.cc/index.php?topic=595563.0
Did somebody try this?
I really would like to store some integers on different slots and read them out later on.
Any sugestions?
Thanks in advance
I am now writing on the flash to store data…
#include <ArduinoECCX08.h>
byte data[4]={0,24,35,37};
void setup() {
Serial.begin(9600);
while (!Serial);
if (!ECCX08.begin()) {
Serial.println("Failed to communicate with ECC508/ECC608!");
while (1);
}
if (!ECCX08.locked()) {
Serial.println("The ECC508/ECC608 is not locked!");
while (1);
}
delay(1000);
ECCX08.writeSlot(10, data, sizeof(4));
delay(1000);
Serial.println(ECCX08.readSlot(10, data, sizeof(4)));
}
void loop() {
// Serial.print("Random number = ");
// Serial.println(ECCX08.random(65535));
delay(1000);
}