不韋 呂 / Mbed 2 deprecated Demo_LPS25H

Dependencies:   UIT_LPS25H_I2C mbed

Files at this revision

API Documentation at this revision

Comitter:
MikamiUitOpen
Date:
Sun Dec 18 08:30:17 2016 +0000
Commit message:
1

Changed in this revision

UIT_LPS25H_I2C.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/UIT_LPS25H_I2C.lib	Sun Dec 18 08:30:17 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/MikamiUitOpen/code/UIT_LPS25H_I2C/#888288e9f8d5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Dec 18 08:30:17 2016 +0000
@@ -0,0 +1,22 @@
+//--------------------------------------------------------------
+//  気圧センサ LPS25H 用クラス Lps25hI2c の使用例
+//
+//  2016/12/18, Copyright (c) 2016 MIKAMI, Naoki
+//--------------------------------------------------------------
+
+#include "LPS25H_I2C.hpp"
+using namespace Mikami;
+
+int main ()
+{
+    Lps25hI2c pressure;
+    
+    while (true)
+    {
+        float x = pressure;
+        printf("%8.2f hPa\r\n", x);
+//        printf("%8.2f hPa\r\n", pressure.Read()); // OK
+
+        wait(1);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Dec 18 08:30:17 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/faff56e089b2
\ No newline at end of file