Trying to get Kconfig to work
There's something wrong with the importing part I think
This commit is contained in:
15
components/dht22/dht22.c
Normal file
15
components/dht22/dht22.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user