i2c interface boiler plate