fixed i2c.write syntax error