#include<Wire.h>
#include<Eeprom24C32_64.h>
#define EEPROM_ADDRESS 0x000
void setup() {
Serial.begin(9600);
eeprom.initialize();
const word address = 0x000;
const byte count = 94;
byte inputBytes[count] = { 0 };
byte outputBytes[count] = { 0 };
Serial.println("Read bytes from EEPROM memory...");
eeprom.readBytes(address, count, outputBytes);
Serial.println("Read bytes:");
for (byte i = 0; i < count; i++) {
Serial.write(outputBytes[i]);
Serial.print(" ");
}
Serial.println("");
}
void loop() {
}
Next code... I have tried many sketches.
#include <EEPROM.h>
void setup () {
Serial.begin (115200);
Serial.println ();
for (int addr = 0x0000; addr < 0x0010; addr++) {
Serial.print ("Address = ");
Serial.print (addr, HEX);
Serial.print (", value = ");
Serial.println (EEPROM.read(addr), HEX);
}
} // end of setup
void loop () {
}
And most of the sketches check the internal EEPROM of the Arduino, not the external, stored on address 0x000. I want to read data from external AT24C32.