I2C Controller Write
R2026bWrite data to I2C peripheral device or I2C peripheral device register
Libraries:
UAV Toolbox Support Package for PX4 Autopilots /
PX4 Peripheral Blocks
Description
Add-On Required: This feature requires the UAV Toolbox Support Package for PX4 Autopilots add-on.
The I2C Controller Write block writes data to an I2C peripheral device that is connected to the board. Using this block, you can write data to a specific register on the I2C peripheral device.
To view the mapping between the Bus number and the port label on hardware board, click View I2C Bus map. For more information on the Bus mapping, see I2C Bus Port Numbers for Labels on PX4 Autopilots.
During Connected I/O simulation, this block writes data to the peripherals of the hardware.
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.
"px4Peripheralslib/I2C Controller Write"
Example: add_block("px4Peripheralslib/I2C Controller Write","myModel/myBlock",MakeNameUnique="on")
