Files
esp-air-monitor/components/dht22/dht22.h
2023-10-25 22:11:04 +01:00

20 lines
320 B
C

#pragma once
#include <stdint.h>
typedef enum {
DHT22_OK,
DHT22_TIMING_ERROR,
DHT22_CHECKSUM_ERROR,
} dht22_error;
typedef uint16_t deci_percent;
typedef int16_t deci_degrees_c;
void dht22_handle_error();
deci_percent dht22_relative_humidity();
deci_degrees_c dht22_temperature();
dht22_error dht22_read();