Abstraction for I/O expander PCA9539
Abstraction for I/O expander PCA9539.
This crate offers the following features:
- Individual pin instances, fully implementing digital::v2 traits of embedded_hal
- Central I/O control, s. PCA9539 module
- Two state management modes for reduced I2C overhead, s. pins module
- Three concurrency models, s. concurrency section
- no_std support
Example
use DummyI2CBus;
use Bank0;
use PCA9539;
use Pin1;
use InputPin;
let i2c_bus = new;
let mut expander = PCA9539 new;
let pins = expander.pins;
let pin01 = pins.get_pin;
assert!;
Development
Any form of support is greatly appreciated. Feel free to create issues and PRs. See DEVELOPMENT for more details.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Each contributor agrees that his/her contribution covers both licenses.