Write values with buffer throw i2c