add i2c code