updated i2c_demo