Tero's blog

Random notes

Reading I2C EEPROM with Arduino and AVR-Ada

Recently, I wanted to access I2C EEPROM with Arduino. However, AVR-Ada (1.1.0) provides no support for I2C interface which many AVR processors and Arduinos have. So, I had to write a package ("Two_Wire") for it.

Example code is available at arduino-eeprom repository and below is the used circuit:

The package is far from perfect, but it should provide a place to start if someone needs to use I2C with AVR-Ada.


Copyright © 2011 Tero Koskinen - Theme Skeleton; Blogging engine Pelican; Powered by Python