BMP180のライブラリの使用例

Dependencies:   BMP180 mbed

Files at this revision

API Documentation at this revision

Comitter:
tazk
Date:
Mon Jul 02 07:44:35 2018 +0000
Parent:
1:5cf8a99c994c
Commit message:
???

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 5cf8a99c994c -r 2de739f5032b main.cpp
--- a/main.cpp	Thu Jun 07 03:12:31 2018 +0000
+++ b/main.cpp	Mon Jul 02 07:44:35 2018 +0000
@@ -14,7 +14,9 @@
     
     for(int i=0;i<100;i++){
         if(bmp180.ReadData(&temperature,&pressure)){
-            printf("%3d:Pressure(hPa)\t:%.2f\n\r%3d:Temperature(C)\t:%.2f\n\r--------------------------------\n\r",i,pressure,i,temperature);
+            printf("%3d:Pressure(hPa)\t:%.2f\n\r",i,pressure);
+            printf("%3d:Temperature(C)\t:%.2f\n\r",i,temperature);
+            printf("--------------------------------\n\r");
             wait(1);
         }
     }