2 releases
0.1.1 | Jun 4, 2024 |
---|---|
0.1.0 | Jun 4, 2024 |
#798 in Embedded development
17KB
149 lines
as7331-rs
Support as7331 driver for esp chips.
Run example:
cargo r_esp32
cargo r_esp32c2
cargo r_esp32c3
cargo r_esp32c6
cargo r_esp32h2
cargo r_esp32s2
cargo r_esp32s3
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)
lib.rs
:
this crate provides as7331 driver for embedded devices (currently support esp chips). please run example first to understand.
Choosing a device and run example
Depending on your target device, you need to enable the chip feature for that device or simply run with alias.
-
with alias:
r_<device> : cargo r_esp32, cargo r_esp32c6, ...
-
full command:
cargo run --release --features=esp32c2 --target=riscv32imc-unknown-none-elf --example uv
Dependencies
~6–15MB
~285K SLoC