2 releases
Uses new Rust 2024
| 0.1.1 | Jan 4, 2026 |
|---|---|
| 0.1.0 | Jan 3, 2026 |
#1815 in Hardware support
755KB
800 lines
Contains (Zip file, 31KB) docs/fritzing/am312.fzz, (Zip file, 30KB) docs/fritzing/bh1750.fzz, (Zip file, 30KB) docs/fritzing/dht22.fzz, (Zip file, 24KB) docs/fritzing/ds18b20.fzz
A Rust library crate providing architecture-agnostic drivers for various sensors and devices.
This crate currently includes drivers for:
- AM312: PIR motion sensor.
- BH1750: ambient light sensor.
- DHT22: temperature and humidity sensor.
- DS18B20: temperature sensor.
All drivers are implemented using only the embedded-hal and
embedded-hal-async traits, making them compatible with any platform that
supports these abstractions.
For each driver, a short documentation is provided containing a description and
the wiring diagram in docs.
These diagrams were created using Fritzing, an open-source tool,
and the corresponding project files can be found in
fritzing.
Features
You can enable only the sensors you need using Cargo features:
[dependencies]
tosca-drivers.version = "0.1.0"
tosca-drivers.default-features = false
tosca-drivers.features = ["bh1750", "dht22"] # only include needed drivers