FRDM-K64F, Avnet M14A2A, Grove Shield, to create smart home system. In use with AT&Ts M2x & Flow.
Dependencies: mbed FXOS8700CQ MODSERIAL
Revision 28:886833917643, committed 2016-07-15
- Comitter:
- JMF
- Date:
- Fri Jul 15 13:17:26 2016 +0000
- Parent:
- 27:f15839656a5d
- Child:
- 29:c69379977ae5
- Commit message:
- comment cleanup
Changed in this revision
HTS221.h | Show annotated file Show diff for this revision Revisions of this file |
hts221_driver.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HTS221.h Wed Jul 13 20:12:49 2016 +0000 +++ b/HTS221.h Fri Jul 15 13:17:26 2016 +0000 @@ -28,8 +28,6 @@ int writeRegister(unsigned char slaveAddress, unsigned char regToWrite, unsigned char dataToWrite); }; -//#define HTS221_ADDRESS 0x5F -//By Stefan #define HTS221_ADDRESS 0xBF //Define a few of the registers that we will be accessing on the HTS221
--- a/hts221_driver.cpp Wed Jul 13 20:12:49 2016 +0000 +++ b/hts221_driver.cpp Fri Jul 15 13:17:26 2016 +0000 @@ -9,7 +9,8 @@ #include "mbed.h" #include "hardware.h" -//I2C i2c(PTC11, PTC10); //SDA, SCL -- define the I2C pins being used +//I2C i2c(PTC11, PTC10); //SDA, SCL -- define the I2C pins being used. Defined in a +//common locatioin since sensors also use I2C // Read a single unsigned char from addressToRead and return it as a unsigned char unsigned char HTS221::readRegister(unsigned char slaveAddress, unsigned char ToRead)