restructure: splitting out sensor functions into their own source files

This commit is contained in:
A.M. Rowsell 2026-06-27 14:12:43 -04:00
commit a6211b4c9d
8 changed files with 184 additions and 70 deletions

21
ens.h Normal file
View file

@ -0,0 +1,21 @@
#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
void activateENS(void);
void deactivateENS(void);
uint8_t getENSData(double *t, double *h, uint8_t *AQI, uint16_t *TVOC,
uint16_t *ECO2, uint16_t *ETOH);
#endif // ENS_H