-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBMP085NB.h
54 lines (50 loc) · 975 Bytes
/
BMP085NB.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
47
48
49
50
51
52
53
54
#ifndef BMP085NB_h
#define BMP085NB_h
#include <Arduino.h>
#define I2C_ADDRESS 0x77
#define OSS 0x03
#define SEA_LEVEL_PRESSURE 101325
class BMP085NB {
public:
void initialize();
void pollData(int *temperature, long *pressure, float *alti);
void setSeaLevelPressure(long);
short Temperature(unsigned int);
float Altitude(long);
long Pressure(unsigned long);
void StartUT();
void StartUP();
unsigned int ReadUT();
unsigned long ReadUP();
void writeRegister(unsigned char, unsigned char);
int readIntRegister(unsigned char);
boolean newData;
private:
long slp;
int ac1;
int ac2;
int ac3;
unsigned int ac4;
unsigned int ac5;
unsigned int ac6;
int b1;
int b2;
int mb;
int mc;
int md;
unsigned long timer;
unsigned long timer1;
int pressureState;
long x1;
long x2;
long x3;
long b3;
long b5;
long b6;
long p;
unsigned long b4;
unsigned long b7;
unsigned int ut;
unsigned long up;
};
#endif