-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsnsr_manager.h
46 lines (39 loc) · 1.33 KB
/
snsr_manager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* @Author: Jakub Witowski
* @Project name: iBeacon
* @File name: snsr_manager.h
*/
#ifndef _SNSR_MANAGER_H_
#define _SNSR_MANAGER_H_
/* ==================================================================== */
/* ========================== include files =========================== */
/* ==================================================================== */
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
#include "server_manager.h"
/* ==================================================================== */
/* ============================ defines =============================== */
/* ==================================================================== */
/* ADC pin with light sensor connected */
#define SENSOR_ANALOG_PIN (A0)
/* ==================================================================== */
/* ============================ classes =============================== */
/* ==================================================================== */
class Sensor
{
private:
Adafruit_BME280 sensor;
public:
bool Sensor_Init();
void Sensor_UpdateValues();
void Sensor_DebugPrint();
typedef struct Sensor_Values_Tag
{
float temperature;
float pressure;
float humidity;
int light;
}Sensor_Values_T;
};
#endif /* _SNSR_MANAGER_H_ */
/* EOF */