includes: move headers to inc/ and update source files
This commit is contained in:
parent
958b2e8e00
commit
5c92ee4bb8
12 changed files with 9 additions and 8 deletions
23
ens.h
23
ens.h
|
|
@ -1,23 +0,0 @@
|
|||
#ifndef ENS_H
|
||||
#define ENS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define ENS_ADDR 0x53
|
||||
#define ENS_TEMP_IN 0x13
|
||||
#define ENS_HUM_IN 0x15
|
||||
#define ENS_STATUS 0x20
|
||||
#define ENS_STATUS_MASK 0x0C
|
||||
#define ENS_AQI 0x21
|
||||
#define ENS_TVOC 0x22
|
||||
#define ENS_ECO2 0x24
|
||||
#define ENS_ETOH 0x26
|
||||
|
||||
#include "hardware/i2c.h"
|
||||
|
||||
void activateENS(i2c_inst_t *i2c);
|
||||
void deactivateENS(i2c_inst_t *i2c);
|
||||
uint8_t getENSData(i2c_inst_t *i2c, double *t, double *h, uint8_t *AQI, uint16_t *TVOC,
|
||||
uint16_t *ECO2, uint16_t *ETOH);
|
||||
|
||||
#endif // ENS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue