LPS25Hの気圧データを取得するプログラムです

Dependencies:   LPS25H mbed

Files at this revision

API Documentation at this revision

Comitter:
PQUTO
Date:
Fri Jan 20 20:47:17 2017 +0000
Commit message:
LPS25H????????????????

Changed in this revision

LPS25H.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
diff -r 000000000000 -r 3004c25ebb90 LPS25H.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LPS25H.lib	Fri Jan 20 20:47:17 2017 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/PQ_Hybrid_Electrical_Equipment_Team/code/LPS25H/#028338208ba1
diff -r 000000000000 -r 3004c25ebb90 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jan 20 20:47:17 2017 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+#include "LPS25H.h"
+
+Serial pc(USBTX, USBRX);
+MyLPS25H mypress(PB_7, PB_6);
+int main() {
+    pc.baud(115200);
+    mypress.SetPress();
+    while(1) {
+        pc.printf("%f\r\n", mypress.GetPress());;    
+    }
+}
+
diff -r 000000000000 -r 3004c25ebb90 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Jan 20 20:47:17 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/faff56e089b2
\ No newline at end of file