simple i2c protocol implemented