This is an I2C master library I wrote for use with AVR 8 bit microcontrollers