worked to reduce program size

Dependencies:   mbed

Revision:
0:620064decfb0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Oct 14 03:29:55 2018 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include "LPS25H.h"
+
+Serial  pc(USBTX, USBRX);// Serial Debug.
+
+DigitalOut myled(LED1);
+LPS25H baro(p28, p27);
+
+int main() {
+    float alt, Bpress;
+    
+    
+    while(1) {
+        
+        baro.get();
+        Bpress = baro.pressure();
+        alt = baro.altitude();
+        
+        pc.printf("pre: %.3f   alt: %.3f\n", Bpress, alt);
+        
+        myled = 1;
+        wait(0.5);
+        myled = 0;
+        wait(0.5);
+    }
+}