This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:applications:gpio:i2c [2023/11/07 04:51] nick [Enable I2C] |
products:sbc:common:applications:gpio:i2c [2026/09/15 03:24] (current) nick |
||
|---|---|---|---|
| Line 24: | Line 24: | ||
| | ::: | | ::: | ||
| | ::: | ::: | 26(SDA) | | ::: | ::: | 26(SDA) | ||
| + | ^ VIM-5 | I2C D | ||
| + | | ::: | ::: | 23(SDA) | ||
| + | | ::: | ||
| + | | ::: | ::: | 26(SDA) | ||
| ===== Enable I2C ===== | ===== Enable I2C ===== | ||
| Line 111: | Line 115: | ||
| /dev/i2c-4 | /dev/i2c-4 | ||
| ``` | ``` | ||
| + | |||
| + | <tabbox VIM 5> | ||
| + | |||
| + | Edit ''/ | ||
| + | |||
| + | |||
| + | e.g. To enable '' | ||
| + | |||
| + | ```shell | ||
| + | fdt_overlays=i2c_d | ||
| + | |||
| + | ``` | ||
| + | |||
| + | After reboot, you will see the I2C device node. | ||
| + | |||
| + | ```shell | ||
| + | $ ls /dev/i2c-3 | ||
| + | /dev/i2c-3 | ||
| + | ``` | ||
| + | |||
| </ | </ | ||