HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

i2cdetect — Scan I2C buses. See also: `i2cdump`, `i2cget`, `i2cset`. More information: <https://manned.org/i2cde

Submitted by: @import:tldr-pages··
0
Viewed 0 times
i2ccommandi2cdetectbusescliscanseealso
linux

Problem

How to use the i2cdetect command: Scan I2C buses. See also: i2cdump, i2cget, i2cset. More information: <https://manned.org/i2cdetect>.

Solution

i2cdetect — Scan I2C buses. See also: i2cdump, i2cget, i2cset. More information: <https://manned.org/i2cdetect>.

List active I2C buses:
i2cdetect -l


Scan devices on an I2C bus:
i2cdetect {{i2c_bus}}


Scan devices on an I2C bus without asking for confirmation:
i2cdetect -y {{i2c_bus}}

Code Snippets

List active I2C buses

i2cdetect -l

Scan devices on an I2C bus

i2cdetect {{i2c_bus}}

Scan devices on an I2C bus without asking for confirmation

i2cdetect -y {{i2c_bus}}

Context

tldr-pages: linux/i2cdetect

Revisions (0)

No revisions yet.