si1145 library
Dependents: FRDM_ApplicationShield_GroveSensors
Revision 2:4d89a48e6174, committed 2015-05-30
- Comitter:
- caseyquinn
- Date:
- Sat May 30 00:02:00 2015 +0000
- Parent:
- 1:8587b5583343
- Child:
- 3:efef49daeb13
- Commit message:
- changed Slave_Address to SI1145_ADDRESS
Changed in this revision
SI1145.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/SI1145.h Fri May 29 13:52:22 2015 +0000 +++ b/SI1145.h Sat May 30 00:02:00 2015 +0000 @@ -7,7 +7,7 @@ */ #include "mbed.h" -#define SLAVE_ADDRESS (0x60 << 1) +#define SI1145_ADDRESS (0x60 << 1) extern Serial pc; /** SI1145 class @@ -24,13 +24,13 @@ * @param scl I2C-bus SCL pin * @param slave_adr (option) I2C-bus address (default: 0x60) */ - SI1145(PinName sda, PinName sck, char slave_adr = SLAVE_ADDRESS); + SI1145(PinName sda, PinName sck, char slave_adr = SI1145_ADDRESS); /** Create a SI1145 instance * which is connected to specified I2C pins with specified address * @param i2c_obj I2C object (instance) * @param slave_adr (option) I2C-bus address (default: 0x60) */ - SI1145(I2C &i2c_obj, char slave_adr = SLAVE_ADDRESS); + SI1145(I2C &i2c_obj, char slave_adr = SI1145_ADDRESS); /** Destructor of SI1145 */ //virtual ~SI1145();