Crates.io | pca9539 |
lib.rs | pca9539 |
version | |
source | src |
created_at | 2022-04-07 15:58:56.474497 |
updated_at | 2024-12-20 09:26:22.647226 |
description | Abstraciton for PCA9539 I/O expander |
homepage | |
repository | https://github.com/pegasus-aero/rt-PCA9539 |
max_upload_size | |
id | 563748 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Abstraction for I/O expander PCA9539.
This crate offers the following features:
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, 0x74);
let pins = expander.pins();
let pin01 = pins.get_pin(Bank0, Pin1);
assert!(pin01.is_high().unwrap());
Any form of support is greatly appreciated. Feel free to create issues and PRs. See DEVELOPMENT for more details.
Licensed under either of
Each contributor agrees that his/her contribution covers both licenses.