BMP180 is a digital barometric pressure sensor made by Bosch Sensortec (I2C Interface)
Dependents: LPC1114_data_logger ProjectIOT Wether_Meter LPC1114_barometer_with_data_logging
Diff: BMP180.cpp
- Revision:
- 1:23942d7b7023
- Parent:
- 0:9c1a7a1f0d97
- Child:
- 2:b81e7659be7a
--- a/BMP180.cpp Sun Jun 15 03:28:26 2014 +0000 +++ b/BMP180.cpp Fri Jun 20 21:43:29 2014 +0000 @@ -7,7 +7,7 @@ * http://mbed.org/users/kenjiArai/ * Created: August 14th, 2013 for STM32L152 * Changed: May 21st, 2014 mbed LPC1114 - * Revised: June 14th, 2014 + * Revised: June 19th, 2014 * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE @@ -202,9 +202,9 @@ } void BMP180::i2c_read_n_bytes (int addr, char* dt, int n) { - i2c.read(addr, dt, 2); + i2c.read(addr, dt, n); } void BMP180::i2c_write_n_bytes (int addr, char* dt, int n) { - i2c.write(addr, dt, 2); + i2c.write(addr, dt, n); }