16 lines
261 B
C
16 lines
261 B
C
#ifndef dht22_H
|
|
#define dht22_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
int pin;
|
|
float humidity;
|
|
float temperature;
|
|
} sensor;
|
|
|
|
void getData(sensor *s);
|
|
//static int read_dht22_dat(int pin, sensor *s);
|
|
//static uint8_t sizecvt(const int read);
|
|
#endif
|