update i2c device's interface

fix some example