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.
20 lines
329 B
C
20 lines
329 B
C
4 weeks ago
|
#ifndef HTU21D_H
|
||
|
#define HTU21D_H
|
||
|
|
||
|
// I2C Address
|
||
|
#define HTU21D_I2C_ADDR 0x40
|
||
|
// Commands
|
||
|
#define HTU21D_TEMP 0xE3
|
||
|
#define HTU21D_HUMID 0xE5
|
||
|
#define HTU21D_RESET 0xFE
|
||
|
|
||
|
|
||
|
// Function declarations:
|
||
|
|
||
|
// Temp
|
||
|
int getTemperature(int fd, double *temperature);
|
||
|
// Humidity
|
||
|
int getHumidity(int fd, double *humidity);
|
||
|
|
||
|
#endif // HTU21D_H
|