dht.h
1 #ifndef _DHT_SENSOR_H 2 #define _DHT_SENSOR_H 3 4 #include "hardware/gpio.h" 5 6 typedef struct { 7 float humidity; 8 float temp_celsius; 9 } dht_reading; 10 11 void read_from_dht(dht_reading *result, uint pin); 12 13 #endif
1 #ifndef _DHT_SENSOR_H 2 #define _DHT_SENSOR_H 3 4 #include "hardware/gpio.h" 5 6 typedef struct { 7 float humidity; 8 float temp_celsius; 9 } dht_reading; 10 11 void read_from_dht(dht_reading *result, uint pin); 12 13 #endif