Files
esp-air-monitor/components/dht22/dht22.c
Arthur Roberts 92949ea84d Trying to get Kconfig to work
There's something wrong with the importing part I think
2023-10-23 21:30:38 +01:00

16 lines
264 B
C

#include "dht22.h"
#define DATA_GPIO CONFIG_DHT22_DATA_GPIO
#if DATA_GPIO == -1
#error "Please define your DHT22 GPIO Data Pin"
#endif /* CONFIG_DHT22_DATA_GPIO == -1 */
dht22_error dht_read() {
return DHT_OK;
}
int dht_temperature() {
return DATA_GPIO;
}