Enable I2C interface
enableI2C(
enables
the I2C bus at the default bus speed, mypi
)100000
, and
makes the GPIO pins available for use as I2C pins. By default, the
I2C bus is enabled. This method works only after you use disableI2C
.
For example, on a Raspberry Pi™ Model B Rev 2 board, enabling the I2C bus frees the I2C1_SDA (GPIO 2) and I2C1_SCL (GPIO 3) pins.
enableI2C(
enables
the I2C bus and overrides the current bus speed. mypi
,i2cBusSpeed
)
disableI2C
| i2cdev
| MATLAB Support Package for Raspberry Pi Hardware | read
| readRegister
| scanI2CBus
| write
| writeRegister