Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: 2017_11_1768 2017_11_1768 201803_oshima_jodan 201803_oshima_gedan
Fork of BMP180 by
Diff: BMP180.h
- Revision:
- 1:072073c79cfd
- Parent:
- 0:9a0671b6009f
- Child:
- 2:5230f93e755b
--- a/BMP180.h Sat Mar 08 21:42:40 2014 +0000
+++ b/BMP180.h Mon Mar 17 20:42:23 2014 +0000
@@ -11,7 +11,7 @@
Released under the MIT License (see http://mbed.org/license/mit)
Documentation regarding the BMP180 can be found here:
- ...............
+ http://mbed.org/media/uploads/spiridion/bst-bmp180-ds000-09.pdf
*/
#ifndef BMP180_H
@@ -52,9 +52,11 @@
* BMP180 bmp180(PIN_SDA, PIN_SCL);
* float pressure, temperature;
*
- * bmp180.Initialize(64, BMP180_OSS_NORMAL); // 64m altitude compensation and normal oversampling
+ * // bmp180.Initialize(); // no altitude compensation and normal oversampling
+ * bmp180.Initialize(64, BMP180_OSS_ULTRA_LOW_POWER); // 64m altitude compensation and low power oversampling
*
- * while(1) {
+ * while(1)
+ * {
* if (bmp180.ReadData(&pressure, &temperature))
* printf("Pressure(hPa): %8.2f \t Temperature(C): %8.2f\n", pressure, temperature);
* wait(1);
