#embedded-devices #driver #as7331

as7331-rs

as7331 driver in Rust for embedded devices

2 releases

0.1.1 Jun 4, 2024
0.1.0 Jun 4, 2024

#1716 in Embedded development

Download history 188/week @ 2024-06-03 14/week @ 2024-06-10

202 downloads per month

MIT/Apache

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:


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
~280K SLoC