gallo-0.4.0 has been yanked.
Gallo
Command-line interface for the Pico de Gallo USB bridge. Provides direct access to I²C, SPI, and GPIO peripherals in batch mode.
Usage
$ gallo list # List connected devices
$ gallo version # Query firmware version
$ gallo i2c scan # Scan I2C bus
$ gallo i2c read -a 0x48 -c 2 # Read 2 bytes from address 0x48
$ gallo i2c write -a 0x50 -b 0xDE 0xAD # Write bytes to address 0x50
$ gallo spi transfer -b 0x01 0x02 # Full-duplex SPI transfer
$ gallo spi read -c 10 -f ascii # Read 10 bytes, ASCII output
Output Formats
Read data can be displayed in three formats via -f / --format:
hex(default): hexadecimal byte dumpbinary: raw bytes to stdoutascii: printable characters, non-printable shown as.
License
Licensed under the terms of the MIT license.
Contribution
Any contribution intentionally submitted for inclusion in the work by you shall be licensed under the terms of the same MIT license, without any additional terms or conditions.