Bosh pressure sensor

Dependencies:   mbed

Fork of BMP085 by Suga koubou

Revision:
2:dee533027e61
Parent:
1:80e4c62baf09
--- a/BMP085.cpp	Mon Dec 13 14:02:24 2010 +0000
+++ b/BMP085.cpp	Wed Jun 12 13:10:12 2013 +0000
@@ -22,16 +22,8 @@
  * @param p_scl port of I2C SCL
  * @param p_oss parameter of OSS
  */
-BMP085::BMP085 (PinName p_sda, PinName p_scl, BMP085_oss p_oss) : i2c(p_sda, p_scl) {
-    init(p_oss);
-}
-
-/**
- * @brief Initializes interface (public I2C)
- * @param p_i2c instance of I2C class
- * @param p_oss parameter of OSS
- */
-BMP085::BMP085 (I2C& p_i2c, BMP085_oss p_oss) : i2c(p_i2c) { 
+BMP085::BMP085 (PinName sda, PinName scl, BMP085_oss p_oss): i2c(sda, scl)
+{
     init(p_oss);
 }
 
@@ -39,7 +31,8 @@
  * @brief Get temperature
  * @return temperature (`C)
  */
-float BMP085::get_temperature() {
+float BMP085::get_temperature() 
+{
     return temperature;
 }
 
@@ -109,7 +102,8 @@
     oss = p_oss;
 }
 
-unsigned short BMP085::twi_readshort (int id, int addr) {
+unsigned short BMP085::twi_readshort (int id, int addr) 
+{
     unsigned short i;
 
     i2c.start();