Skip to content
Commit ffd568db authored by Anas Nashif's avatar Anas Nashif Committed by Carles Cufi
Browse files

i2c_shell: Add write_byte/read_byte commands



Add simple commands to read or write a single byte from a device
register.

   i2c write_byte I2C_2 36 b0 12
   i2c read_byte I2C_2 36 0
   Output: 0x82

I modified Anas' version to put args in variables first so that the code
is self-documenting.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 0ecc71cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment