example usage of mpl115a2 library

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
joeh
Date:
Mon May 07 13:28:43 2012 +0000
Parent:
0:118187295473
Commit message:
made default version none debug

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mpl115a2.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 118187295473 -r f198c37d9f5a main.cpp
--- a/main.cpp	Mon May 07 13:27:04 2012 +0000
+++ b/main.cpp	Mon May 07 13:28:43 2012 +0000
@@ -3,7 +3,9 @@
 
 I2C i2c(p9, p10);        // sda, scl
 Serial pc(USBTX, USBRX); // tx, rx
-MPL115A2 p_sensor(&i2c, &pc);
+
+// MPL115A2 p_sensor(&i2c, &pc); //DEBUG verion
+MPL115A2 p_sensor(&i2c);
 
 int main() {
 
@@ -11,10 +13,13 @@
     
     while(1) 
     {
+        
         p_sensor.ReadSensor();
         pc.printf("Pressure    = %f\n", p_sensor.GetPressure());
         wait(1);
         pc.printf("Temperature = %f\n", p_sensor.GetTemperature());
         wait(1);
+        
+        
     }
 }
diff -r 118187295473 -r f198c37d9f5a mpl115a2.lib
--- a/mpl115a2.lib	Mon May 07 13:27:04 2012 +0000
+++ b/mpl115a2.lib	Mon May 07 13:28:43 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/joeh/code/mpl115a2/#6dbe3322f203
+http://mbed.org/users/joeh/code/mpl115a2/#5a72175e5cb2