core i2c: i2c with state