#expander #gpio #ic #no-std #pca9539

yanked rca9539

Abstraciton for PCA9539 I/O expander

0.1.1 Apr 7, 2022
0.1.0 Apr 7, 2022

#19 in #expander

MIT/Apache

70KB
1.5K SLoC

Moved

This crate moved to PCA9539.


lib.rs:

Abstraction of PCA9539

Abstraction for I/O expander PCA9539. This crate offers the following features:

Example

use rca9539::example::DummyI2CBus;
use rca9539::expander::Bank::Bank0;
use rca9539::expander::PCA9539;
use rca9539::expander::PinID::Pin1;
use embedded_hal::digital::v2::InputPin;

let i2c_bus = DummyI2CBus::new();
let mut  expander = PCA9539::new(i2c_bus);
let pins = expander.pins();

let pin01 = pins.get_pin(Bank0, Pin1);
assert!(pin01.is_high().unwrap());

Dependencies

~140–300KB