# pretty hal machine cli ## Top Level (`phm-cli`) ``` phm-cli USAGE: phm-cli OPTIONS: -h, --help Print help information SUBCOMMANDS: help Print this message or the help of the given subcommand(s) i2c Commands for I2C communication ``` ## I2C Commands (`phm-cli i2c`) ``` phm-cli-i2c Commands for I2C communication USAGE: phm-cli i2c OPTIONS: -h, --help Print help information SUBCOMMANDS: help Print this message or the help of the given subcommand(s) read Read count bytes from the given address write Write bytes to the given address write-read Write-Read bytes to and from the given address ``` ### I2C Read (`phm-cli i2c read`) ``` phm-cli-i2c-read Read count bytes from the given address USAGE: phm-cli i2c read -a
--read-ct OPTIONS: -a
The address to write to -h, --help Print help information --read-ct Number of bytes to read ``` ### I2C Write (`phm-cli i2c write`) ``` phm-cli-i2c-write Write bytes to the given address USAGE: phm-cli i2c write -a
--write OPTIONS: -a
The address to write to -b, --write Bytes to write to the address. Should be given as a comma-separated list of hex values. For example: "0xA0,0xAB,0x11" -h, --help Print help information ``` ### I2C Write then Read (`phm-cli i2c write-read`) ``` phm-cli-i2c-write-read Write-Read bytes to and from the given address USAGE: phm-cli i2c write-read -a
--bytes --read-ct OPTIONS: -a
The address to write to. Should be given as a hex value. For example: "0xA4" -b, --bytes -h, --help Print help information --read-ct Bytes to write to the address. Should be given as a comma- separated list of hex values. For example: "0xA0,0xAB,0x11" ```