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.
Dependents: 3_test_EEROMM-barometer 5_waitmode 5_flightmode 5-2_thrustermode ... more
Revision 1:9574dea45061, committed 2020-07-20
- 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