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