disableI2C
Disable I2C interface
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
Syntax
Description
disableI2C(
disables the I2C bus.
You can then use the Raspberry Pi® I2C pins I2C1_SDA (GPIO 2) and I2C1_SCL (GPIO 3) as GPIO pins. The I2C
bus is enabled by default. To re-enable I2C, use mypi
)enableI2C
Note
MATLAB® Support Package for Raspberry Pi Hardware does not support disableI2C
function
for the Bullseye operating system. Under Hardware Setup use the Configure
Peripheral Modules window to disable I2C interface on the Raspberry
Pi.
.
Examples
Input Arguments
Version History
Introduced in R2014a
See Also
scanI2CBus
| read
| write
| readRegister
| writeRegister
| enableI2C
| MATLAB Support Package for
Raspberry Pi Hardware