1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-27 16:15:27 +02:00
tldr/pages/linux/i2cget.md

19 lines
585 B
Markdown
Raw Normal View History

2025-07-09 11:19:46 +08:00
# i2cget
> Read from an register of an I2C device.
> See also: `i2cdetect`, `i2cdump`, `i2cset`.
> Note: All addresses should be specified in hexadecimal.
> More information: <https://manned.org/i2cget>.
- Read from a register of an I2C device:
`i2cget {{i2cbus}} {{device_address}} {{register_address}}`
- Read from a register of an I2C device without asking for confirmation:
`i2cget -y {{i2cbus}} {{device_address}} {{register_address}}`
- Read from a register of an I2C device using a specific mode:
`i2cget {{i2cbus}} {{device_address}} {{register_address}} {{b|w|c|s|i}}`