GSMA version
Dependencies: FXOS8700CQ mbed sfh7779
Fork of StarterKit by
Diff: hts221_driver.cpp
- Revision:
- 28:886833917643
- Parent:
- 11:e6602513730f
- Child:
- 30:48b43538e98b
--- 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)