I2C Register Read
Controller device reads data from the I2C peripheral device or I2C peripheral device register(s)
Since R2020b
Add-On Required: This feature requires the Simulink Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
Libraries:
Simulink Support Package for LEGO MINDSTORMS EV3 Hardware
Description
In the I2C Register Read block, the controller device reads data from the I2C peripheral device or the I2C peripheral device register. The EV3 brick acts as the controller device. Any I2C device, such as a color sensor, can act as the peripheral device. Both the controller and the peripheral device must be connected over the same I2C network for successful communication.
Simulink® Support Package for LEGO® MINDSTORMS® EV3 Hardware supports the I2C serial data communication protocol, where each device on the I2C network is referenced by a unique 8-bit address or identifier.
Ports
Output
Parameters
Version History
Introduced in R2020b