mcp2221-cli

Crates.iomcp2221-cli
lib.rsmcp2221-cli
version0.1.0
created_at2025-05-30 16:40:37.948235+00
updated_at2025-05-30 16:40:37.948235+00
descriptionCLI for the MCP2221 USB to I2C and GPIO converter
homepage
repositoryhttps://github.com/robjwells/mcp2221-hal/
max_upload_size
id1695329
size55,856
Rob Wells (robjwells)

documentation

README

MCP2221 CLI

A command-line interface for the MCP2221 USB to I2C and GPIO converter.

This allows you to interact in a simple manner with a connected MCP2221 without having to write a standalone program to, for example, send and receive I2C data or change settings.

The CLI uses mcp2221-hal, which you might like to check out if you're writing embedded-hal device drivers via an MCP2221.

Features

  • I2C: read, write, write-read, address check
  • GPIO: read digital input, set digital output
  • Analog input (ADC) and output (DAC)
  • Configure pins into other modes (activity indication, for example)
  • Change USB device information, such as product and manufacturer strings.
  • Reset the device

Installation

For the moment, just use Cargo:

cargo install --locked mcp2221-cli

License

This crate is licensed under MIT or Apache 2.0 (at your option).

Commit count: 116

cargo fmt