a i2c interface implemented in C.