i2cset
Write an i2c register. toybox
On Linux
Linux
Write an i2c register. MODE is b for byte, w for 16-bit word, i for I2C block.
i2cset [-fy] BUS CHIP ADDR VALUE... MODE
-fForce access to busy devices-ySkip confirmation prompts (yes to all)Linux
Set the value of a register of an I2C device. Note: All addresses should be specified in hexadecimal.
Write to a register of an I2C device
i2cset i2cbus device_address register_address valueIdentifyWrite to a register of an I2C device without asking for confirmation
i2cset -y i2cbus device_address register_address valueIdentify-ySkip confirmation prompts (yes to all) toyboxWrite to a register of an I2C device using a specific mode
i2cset i2cbus device_address register_address value bIdentify