Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: UIT_LPS25H_I2C mbed
Diff: main.cpp
- Revision:
- 0:3b25091eab21
--- /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);
+ }
+}