tosca-drivers

Crates.iotosca-drivers
lib.rstosca-drivers
version0.1.1
created_at2026-01-03 23:11:13.520284+00
updated_at2026-01-04 23:01:08.338928+00
descriptionA library providing architecture-agnostic drivers for various sensors and devices.
homepage
repositoryhttps://github.com/ToscaLabs/tosca/tree/master/crates/tosca-drivers
max_upload_size
id2020911
size879,889
(Luni-4)

documentation

https://docs.rs/tosca-drivers

README

tosca-drivers

Crates.io Version LICENSE

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
Commit count: 0

cargo fmt