commit | ffd568db09410d24e62ba8aec5cfaff4cc46cc42 | [log] [tgz] |
---|---|---|
author | Anas Nashif <anas.nashif@intel.com> | Fri Jan 10 09:09:24 2020 -0500 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Sun May 10 17:49:30 2020 +0200 |
tree | dbb5f4f15a0f0ab184ef7fdc2557613411465a0c | |
parent | 0ecc71ccb22e3dcaba2a50adec1d2c1f72c373ea [diff] |
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: Anas Nashif <anas.nashif@intel.com> Signed-off-by: Simon Glass <sjg@chromium.org>