#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()
{
}
nextNext code... I have tried many codessketches.
#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 ()
{
}
andAnd most of codes checksthe sketches check the internal eepromEEPROM of the Arduino, not the external....
stored, stored on address 0x000;
I0x000. I want to read data from external AT24c32AT24C32.
