I2C Controller Write
R2026bWrite data to I2C peripheral device or I2C peripheral device register
Libraries:
Raspberry Pi Blockset /
Communication
Description
Write data to an I2C peripheral device or an I2C peripheral device register. Using this block, you can also write data to a specific register on the I2C peripheral.
For more information on I2C communication, refer to Support I2C Communication and Raspberry Pi I2C Interface.
Note
To generate C/C++ code for this block, you must have an Embedded Coder® license.
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"raspberrypiCommlib/I2C Controller Write"
Example: add_block("raspberrypiCommlib/I2C Controller Write","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2017a
