SSLM1 / 2_LPS33HW

Dependents:   3_test_EEROMM-barometer 5_waitmode 5_flightmode 5-2_thrustermode ... more

Files at this revision

API Documentation at this revision

Comitter:
sasakisho
Date:
Mon Jul 20 15:57:55 2020 +0000
Parent:
0:efb4130c9550
Commit message:
at Pressure addr

Changed in this revision

LPS33HW.cpp Show annotated file Show diff for this revision Revisions of this file
LPS33HW.h Show annotated file Show diff for this revision Revisions of this file
--- a/LPS33HW.cpp	Mon Jun 29 08:13:45 2020 +0000
+++ b/LPS33HW.cpp	Mon Jul 20 15:57:55 2020 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 #include "LPS33HW.h"
 
-LPS33HW::LPS33HW(PinName sda,PinName scl) : i2c(sda, scl) ,addr(S_add)
+LPS33HW::LPS33HW(PinName sda,PinName scl) : i2c(sda, scl) ,addr(SH_add)
 {
 }
 
--- a/LPS33HW.h	Mon Jun 29 08:13:45 2020 +0000
+++ b/LPS33HW.h	Mon Jul 20 15:57:55 2020 +0000
@@ -4,7 +4,8 @@
 #include "mbed.h"
 
 //LPS33HW slave address
-#define S_add 0xB8
+#define SL_add 0xB8
+#define SH_add 0xBA
 
 //Check adress
 #define WHO_AM_I 0x0F