tosca-drivers
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:
[]
= "0.1.0"
= false
= ["bh1750", "dht22"] # only include needed drivers