IoT - Modular - S-BMP180.h

From The TinkerNet Wiki
Revision as of 14:27, 30 April 2021 by Tinker (talk | contribs) (Created page with "<syntaxhighlight lang="cpp" line="1"> // Bosch-Sensortec // BMP180 // Atmospheric Pressure sensor // *** OBSOLETE *** // Measures barometric pressure and ambient temperature...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1 // Bosch-Sensortec
 2 // BMP180
 3 // Atmospheric Pressure sensor
 4 // *** OBSOLETE ***
 5 // Measures barometric pressure and ambient temperature
 6 
 7 #ifndef BMP180_H
 8 #define BMP180_H
 9 
10 // BMP180 I2C address is 0x77 (119)
11 
12 int BMP180address = 0x77;
13 
14 Adafruit_BMP085 bmp;
15 
16 int BMP180_Count; // Number of attached BMP180s
17 
18 char BMP180_Labels[][6] =
19     {"Temp",
20      "Baro"};
21 
22 struct BMP180_Readings
23 {
24     byte Status;
25 
26     float Temperature;
27     float AbsPressure;
28     float SeaPressure;
29 };
30 
31 extern struct BMP180_Readings BMP180_Datum;
32 
33 #endif // BMP180_H