writeRegister
Write to register on I2C device
Description
writeRegister(
writes a hexadecimal value to a register on an I2C device. Optionally, you can match
the data precision to the size of the register on the device.myi2cdevice,register,value,dataPrecision)
The writeRegister method stops when it finishes writing the
specified data to the register, or when the timeout period elapses.
Note
To generate C/C++ code for this function, you must have an Embedded Coder® license.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2016b
