implement comm protocol using i2c