sensor
Diff: BMP280.cpp
- Revision:
- 6:d03826fe1062
- Parent:
- 5:7139d5accbc3
- Child:
- 7:c72b726c7dc9
--- a/BMP280.cpp Wed Apr 13 07:19:00 2016 +0000 +++ b/BMP280.cpp Wed Apr 13 07:39:05 2016 +0000 @@ -83,7 +83,7 @@ DEBUG_PRINT("dig_P = 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x\n", dig_P1, dig_P2, dig_P3, dig_P4, dig_P5, dig_P6, dig_P7, dig_P8, dig_P9); - cmd[0] = 0xA1; // read dig_H regs + /* cmd[0] = 0xA1; // read dig_H regs i2c.write(address, cmd, 1); i2c.read(address, cmd, 1); cmd[1] = 0xE1; // read dig_H regs @@ -98,6 +98,7 @@ dig_H6 = cmd[7]; DEBUG_PRINT("dig_H = 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x\n", dig_H1, dig_H2, dig_H3, dig_H4, dig_H5, dig_H6); +*/ } float BME280::getTemperature() @@ -163,7 +164,7 @@ return (pressf/100.0f); } -float BME280::getHumidity() +/*float BME280::getHumidity() { uint32_t hum_raw; float humf; @@ -189,4 +190,4 @@ humf = (float)(v_x1 >> 12); return (humf/1024.0f); -} +}*/