18 lines
355 B
C
18 lines
355 B
C
#ifndef AHT20_H
|
|
#define AHT20_H
|
|
|
|
#include <avr/io.h>
|
|
|
|
typedef struct aht20_reading {
|
|
float temperature;
|
|
float humidity;
|
|
} aht20_reading;
|
|
|
|
aht20_reading aht20_read_measure(void);
|
|
uint8_t aht20_status(void);
|
|
void aht20_init(void);
|
|
void aht20_print_status(uint8_t status);
|
|
void aht20_trigger(void);
|
|
#define AHT20 (0x38)
|
|
|
|
#endif /* AHT20_H */
|