Update dht22.h
This commit is contained in:
10
dht22.h
10
dht22.h
@@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int pin;
|
int pin;
|
||||||
float humidity;
|
float humidity;
|
||||||
@@ -12,4 +16,10 @@ typedef struct {
|
|||||||
void getData(sensor *s);
|
void getData(sensor *s);
|
||||||
//static int read_dht22_dat(int pin, sensor *s);
|
//static int read_dht22_dat(int pin, sensor *s);
|
||||||
//static uint8_t sizecvt(const int read);
|
//static uint8_t sizecvt(const int read);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user