Create the new i2c write function