#include "WConstants.h" #include "EEPROM.h" #include #include "Event.h" uint8_t EEPROMClass::read(int address) { return array[address]; } void EEPROMClass::write(int address, uint8_t value) { if (address > sizeof(array)) fprintf(stderr,"access to EEPROM address %d is past end of implementing array in EEPROM.cpp\n", address); array[address]=value; } void EEPROMClass::dump() { for (int i = 0; i <= 3; i++) printf("%2x ", array[i]); printf("\n"); for (int i = 4; i <= 5; i++) printf("%2x ", array[i]); printf("\n"); for (int i = 6; i <= 11; i++) printf("%2x ", array[i]); printf("\n"); int j = 12; for (int k = 0; k<4; k++) { for (int i = 0; i