implement i2c based control protocol