I2C Temprature Sensor Progemm MPL3115A2

Dependents:   I2C_Temprature_raspiboard

Fork of MPL3115A2 by Michael Lange

Files at this revision

API Documentation at this revision

Comitter:
ODEM
Date:
Tue Jun 20 07:42:33 2017 +0000
Parent:
3:7c7c1ea6fc33
Commit message:
I2C Temp,Pressure,

Changed in this revision

Altitude.h Show annotated file Show diff for this revision Revisions of this file
Temperature.h Show annotated file Show diff for this revision Revisions of this file
diff -r 7c7c1ea6fc33 -r c0ee6755d57f Altitude.h
--- a/Altitude.h	Wed Apr 02 12:59:44 2014 +0000
+++ b/Altitude.h	Tue Jun 20 07:42:33 2017 +0000
@@ -50,7 +50,7 @@
     void setAltitude(float a, unitsType units = FEET);
 
     //! Returns the altitude as a string in the units specified, defaulting to FEET if none specified.
-    const char* print(unitsType units = FEET);
+    const char* print(unitsType units = METERS);
     
     //! Converts meters to feet.
     static float MetersToFeet(float meters) { return meters * 3.28084; }
diff -r 7c7c1ea6fc33 -r c0ee6755d57f Temperature.h
--- a/Temperature.h	Wed Apr 02 12:59:44 2014 +0000
+++ b/Temperature.h	Tue Jun 20 07:42:33 2017 +0000
@@ -45,7 +45,7 @@
     void setTemperature(float a, unitsType units = FAHRENHEIT);
 
     //! Returns the temperature as a string in the units specified, defaulting to FAHRENHEIT if none specified.
-    const char* print(unitsType units = FAHRENHEIT);
+    const char* print(unitsType units = CELSIUS);
     
 private:
     float _temperature;