Read/Write Serial EEPROM via I2C
Simple example, how to read and write EEPROM 24C01 via I2C with Arduino Uno.
Inter-Integrated Circuit is serial synchronous bus. It uses two wires and Arduino Uno has this interface at analog pins A4 and A5. Library for I2C in Arduino is called Wire. More info at wikipedia page.
Code for Arduino is based on code from page Using Arduino with an I2C EEPROM, with some differences:
Code at playground use AT24C256 EEPROM with 256kbit. This EEPROM use 2bits for memory addressing, but AT24C01 use only one bit.
Created on June 15, 2011, 14:26