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.
Diff: LPS22HB.cpp
- Revision:
- 6:c97ae96fea8f
- Parent:
- 5:5f8c19996d44
- Child:
- 7:0414b9099641
diff -r 5f8c19996d44 -r c97ae96fea8f LPS22HB.cpp
--- a/LPS22HB.cpp Mon Jun 19 15:17:49 2017 +0000
+++ b/LPS22HB.cpp Mon Jul 10 01:15:03 2017 +0000
@@ -4,7 +4,7 @@
* made by STMicroelectronics
* http://www.st.com/ja/mems-and-sensors/lps22hb.html
*
- * Modified for LPS22HB by feunoir
+ * Modified for LPS22HB by Taro Watanabe
* http://mbed.org/users/feunoir/
*
* Copyright (c) 2015 Kenji Arai / JH1PJL
@@ -88,7 +88,7 @@
return (float)press / 4096.0f;
}
-//add by user
+/////////////// Read raw data from sensor /////////////////
uint32_t LPS22HB::pressure_raw()
{
return press;
@@ -100,7 +100,7 @@
return (float)temp / 100.0f;
}
-//add by user
+/////////////// Read raw data from sensor /////////////////
int16_t LPS22HB::temperature_raw()
{
return temp;