Trying to get Kconfig to work

There's something wrong with the importing part I think
This commit is contained in:
2023-10-23 21:30:38 +01:00
parent b48adeb547
commit 92949ea84d
6 changed files with 56 additions and 54 deletions

15
components/dht22/dht22.c Normal file
View File

@@ -0,0 +1,15 @@
#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;
}