Files
esp-air-monitor/components/dht22/dht22.h
2023-10-28 17:28:13 +01:00

18 lines
317 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();