| Crates.io | am2301 |
| lib.rs | am2301 |
| version | 0.2.0 |
| created_at | 2024-11-18 07:53:33.289059+00 |
| updated_at | 2025-01-24 14:00:19.505203+00 |
| description | A crate to interface with an AM2301 humidity and temperature sensor. |
| homepage | |
| repository | https://github.com/thomas-god/am2301-rs |
| max_upload_size | |
| id | 1451941 |
| size | 47,056 |
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.