mcp230xx
This crate is a no_std
driver for the
MCP23017 and
MCP23008
16-Bit/8-Bit I2C I/O Expanders.
Basic usage
Include this library as a dependency in your Cargo.toml
:
= "0.1"
mcp230xx
Use embedded-hal implementation to get I2C handle and then create mcp23017 handle:
use *;
let pin = A0;
let mut u = default.unwrap;
u.set_direction.unwrap;
u.set_gpio.unwrap;
assert!;
Hardware address pins
Documentation
API Docs available on docs.rs
Thise crate has evolved from mcp23017.
Minimum supported Rust version (MSRV) is 1.62.0.