avr-dht

Changelog

v2.0.0 — 2026-10-04

Complete rewrite. All public symbols are renamed — this release is a hard break with v1.
Portfolio project, no backward-compatibility shims.
See the migration plan §8.4 for the full rename table.

Renames

v1 v2
DHT_Setup() dht_init()
DHT_Read(double *T, double *H) dht_read(dht_reading *reading) (integer-only)
DHT_GetTemperature(), DHT_GetHumidity() removed — use dht_read()
DHT_ReadRaw(uint8_t data[4]) dht_read_raw(uint8_t frame[5]) (full 5-byte frame)
DHT_GetStatus() removed — status is the function’s return value
DHT_CelsiusToFahrenheit, DHT_CelsiusToKelvin removed — one line of user code (see README)
enum DHT_Status_t { DHT_Ok, ... } typedef enum { DHT_OK, DHT_ERROR_TIMEOUT, DHT_ERROR_CHECKSUM, DHT_ERROR_OUT_OF_RANGE } dht_status
DHT_Type, DHT_Pin DHT_TYPE, DHT_PIN
DHT11, DHT22 DHT_TYPE_DHT11, DHT_TYPE_DHT22

Fixes

Features and optimization

Project changes

v1 — initial release

Original Arduino-style API (DHT_Setup, DHT_Read(double*, double*), DHT_GetStatus).