i2c.cxx: add functionality to write to i2c