mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 06:54:43 +00:00
Update cheatsheets
This commit is contained in:
23
tldr/linux/i2cset
Normal file
23
tldr/linux/i2cset
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# i2cset
|
||||
|
||||
> Set the value of a register of an I2C device.
|
||||
> See also: `i2cdetect`, `i2cdump`, `i2cget`.
|
||||
> Note: All addresses should be specified in hexadecimal.
|
||||
> More information: <https://manned.org/i2cset>.
|
||||
|
||||
- Write to a register of an I2C device:
|
||||
|
||||
`i2cset {{i2cbus}} {{device_address}} {{register_address}} {{value}}`
|
||||
|
||||
- Write to a register of an I2C device without asking for confirmation:
|
||||
|
||||
`i2cset -y {{i2cbus}} {{device_address}} {{register_address}} {{value}}`
|
||||
|
||||
- Write to a register of an I2C device using a specific mode:
|
||||
|
||||
`i2cset {{i2cbus}} {{device_address}} {{register_address}} {{value}} {{b|w|c|s|i}}`
|
||||
Reference in New Issue
Block a user