New Structure

This commit is contained in:
2017-08-23 21:02:28 +02:00
parent 6243c087f5
commit 3482630ed8
10 changed files with 9 additions and 0 deletions

25
RaspberryPi/dht22.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef dht22_H
#define dht22_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
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);
#ifdef __cplusplus
}
#endif
#endif