Main Content
scanI2CBus
Scan I2C bus device addresses
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
Description
[
returns a list of addresses for devices connected to the I2C
bus.i2cAddresses
] = scanI2CBus(mypi
)
[
returns a list of addresses for devices connected to the specified
I2C bus.i2cAddresses
] = scanI2CBus(mypi
,Bus
)
Examples
Input Arguments
Output Arguments
See Also
i2cdev
| read
| write
| readRegister
| writeRegister
| raspi
| MATLAB Support Package for Raspberry Pi Hardware