am2301

Crates.ioam2301
lib.rsam2301
version0.2.0
created_at2024-11-18 07:53:33.289059+00
updated_at2025-01-24 14:00:19.505203+00
descriptionA crate to interface with an AM2301 humidity and temperature sensor.
homepage
repositoryhttps://github.com/thomas-god/am2301-rs
max_upload_size
id1451941
size47,056
Thomas Godlewski (thomas-god)

documentation

README

Crates.io Version

am2301-rs

A crate to interface with an AM2301 humidity and temperature sensor using a Raspberry Pi Pico 1 (RP2040) microcontroller and the embassy framework.

Because the sensor uses a custom one-wire protocol with tight timings the measure is blocking and and expected to take around 5ms (the sensor cannot be pulled sooner than every 2s anyway, as per its datasheet).

A basic example can be found in the examples directory.

Commit count: 9

cargo fmt