Name

i2c-wr — Write to an I2C® device.

Synopsis

i2c-wr [--bus bus] [--help] [--version] address value...

Options

--bus

allows the specification of which I2C® bus to use if several are available on a system. This parameter defaults to the first bus (0).

--help

display short helptext and exit

--version

display commands version and exit

address

The 7bit I2C® bus address to write to.

value

The value to be written, at least one value must be given, an empty write is not permitted.

Description

Write one or more bytes to an I2C® device.

Example 18.2. Using the i2c-wr command

To write a byte of data to the first register in a simtec power management unit you can execute.

>i2c-wr 0x6b 0x00 0x01
Writing 2 bytes to bus 0xe0075224 at address 0x6b
00 01 
>

See also

i2c-rd(1).

i2c-scan(1).