2 # Example Shell Program using the I2C commands.
4 # Usage: i2cmon.sh addr readlen byte1 [byte2 ...]
10 if ! ./i2ccheck --address "$addr"
12 echo "I2C device $addr not found" >&2
13 ./i2cscan --verbose >&2
19 rsp=$(./i2ctrans --fd 3 --address $addr --count $readlen $*)