BM1383GLV pressure sensor library
Dependents: BM1383GLV_Hello LazuriteGraph_Hello GR-PEACH_IoT_Platform_HTTP_sample
Revision 1:6e1c9edabeee, committed 2016-03-23
- Comitter:
- MACRUM
- Date:
- Wed Mar 23 03:29:04 2016 +0000
- Parent:
- 0:b240c59ffaff
- Commit message:
- Fixed default slave address definition
Changed in this revision
BM1383GLV.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r b240c59ffaff -r 6e1c9edabeee BM1383GLV.h --- a/BM1383GLV.h Sun Jan 03 15:15:39 2016 +0000 +++ b/BM1383GLV.h Wed Mar 23 03:29:04 2016 +0000 @@ -32,7 +32,7 @@ #include "mbed.h" -#define DEFAULT_SLAVE_ADDRESS (0x5D << 1) +#define BM1383GLV_DEFAULT_SLAVE_ADDRESS (0x5D << 1) #define BM1383GLV_ID_VAL (0x31) #define BM1383GLV_ID (0x10) #define BM1383GLV_POWER_DOWN (0x12) @@ -75,7 +75,7 @@ * @param sdl SCL pin * @param addr slave address of the I2C peripheral (default: 0xBA) */ - BM1383GLV(PinName sda, PinName scl, int addr = DEFAULT_SLAVE_ADDRESS); + BM1383GLV(PinName sda, PinName scl, int addr = BM1383GLV_DEFAULT_SLAVE_ADDRESS); /** * Create a BM1383GLV instance which is connected to specified I2C pins @@ -84,7 +84,7 @@ * @param i2c_obj I2C object (instance) * @param addr slave address of the I2C-bus peripheral (default: 0xBA) */ - BM1383GLV(I2C &i2c_obj, int addr = DEFAULT_SLAVE_ADDRESS); + BM1383GLV(I2C &i2c_obj, int addr = BM1383GLV_DEFAULT_SLAVE_ADDRESS); /** * BM1383GLV destructor