Ported i2c code to PIC12