i2c implementation for test