I’m having a bit of a confusing issue. I try this:
#include "flashee-eeprom/flashee-eeprom.h"
using namespace Flashee;
FlashDevice* flash;
void setup() {
Serial1.begin(4800);
FlashDevice* flash = Devices::createDefaultStore();
flash->write(42,10);
flash->write(564,12);
int readout;
flash->read(readout,10);
Serial1.println(readout);
flash->read(readout,12);
Serial1.println(readout);
}
void loop() {
}
This prints:
36962346
564
No matter what code I run, writing floats, erasing the flash, trying CreateAddressErase, anything, I only get one valid value.
What’s going on?