This is an old revision of the document!
Table of Contents
I2C
This page introduces how you can interface your I2C devices to ODROID-C.
H/W connection
I2CA (/dev/i2c-1)
Pin Number | Net Name | Export Number | |
---|---|---|---|
C0/C1/C1+ | C2 | ||
3 | I2CA.SDA | 74 | 205 |
5 | I2CA.SCL | 75 | 206 |
I2CB (/dev/i2c-2)
Pin Number | Net Name | Export Number | |
---|---|---|---|
C0/C1/C1+ | C2 | ||
27 | I2CB.SDA | 76 | 207 |
28 | I2CB.SCL | 77 | 208 |
Loading I2C driver
Dedicated pins for I2C are configured for GPIO, these pins can be configured as I2C bus while change the pin configuration. In order to change the configuration, you must load the driver.
$ modprobe aml_i2c
If you have to load the driver every time whenever your ODROID-C starts, simply you can register the driver into /etc/modules.
$ echo "aml_i2c" | sudo tee /etc/modules
This adds one line at end of the file, /etc/modules, and load the driver on boot automatically.