/*
Forum: https://forum.arduino.cc/t/beginner-needs-help-with-debounce-logic/1425853/252
Wokwi: https://wokwi.com/projects/457106782609261569
2026/02/27
ec2021
Test Environment for EEPlus32Class
* Uses the additional function dump() to print relevant class internal data to Serial
* Writes values from 0 to 511 to EEPROM and dumps the data to Serial with each write() access
* It is relevant to use differing values from write to write as the attempt to write the same
value as already stored before does not change the current slot.
*/
#include "EEPlus32Class.h"
EEPlus32Class myEE;
void setup() {
Serial.begin(115200);
Serial.println("Start");
myEE.begin();
myEE.dump();
for (int i = 0; i < 512; i++) {
Serial.print(F("write = "));
Serial.print(i);
Serial.print('\t');
myEE.write(i);
Serial.print(F("read = "));
Serial.print(myEE.read());
Serial.print('\t');
//Serial.println();
myEE.dump();
delay(200);
}
}
void loop() {
// Nothing to be done here
}