You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
371 B
C
25 lines
371 B
C
|
|
//LEONARDO ESTUVO AQUÍ 1 DE OCTUBRE DE 2026
|
|
//
|
|
//HTU21D Temperature and humidity sensor library
|
|
//Tested in a Raspberry Pi Zero
|
|
|
|
#ifndef HTU21D_H
|
|
#define HTU21D_H
|
|
|
|
//Commands and i2c address
|
|
#define ADDR 0x40 //i2c address
|
|
#define HUM 0xE5
|
|
#define TEM 0xE3
|
|
#define RESET 0xFE
|
|
|
|
|
|
|
|
|
|
int getTemp(int fd, double *temp);
|
|
int getHum(int fd, double *hum);
|
|
|
|
|
|
|
|
#endif //HTU21D_H
|