Write I2C register.
Write a single byte to an I2C device register.
|port||The port to which the I2C device is attached. See the Input port constants group. You may use a constant or a variable. |
|i2caddr||The I2C device address. |
|reg||The I2C device register to which to write a single byte. |
|val||The byte to write to the I2C device. |
- A status code indicating whether the write completed successfully or not. See CommLSCheckStatusType for possible result values.