Seed Barometer with I2C interface, NOT working with Seed Arch BLE. Need help.

Dependencies:   BMP085 mbed-src

Fork of Seeed_Barometer_Sensor_Example by Seeed

Revision:
1:e15e9cb70711
Parent:
0:8381ff08ace1
Child:
2:371c934ec950
--- a/main.cpp	Sat Aug 16 01:03:36 2014 +0000
+++ b/main.cpp	Sun Nov 02 08:35:28 2014 +0000
@@ -2,17 +2,21 @@
 #include "mbed.h"
 #include "BMP085.h"
 
-BMP085 barometer(D14, D15);
-
 int main(void)
 {
+    printf("Creating i2c interface  ...\r\n");
+    I2C ic(p5, p6); // I2C (pin sda, pin slc)
+    printf("Creating barometer interface  ...\r\n");
+    BMP085 barometer(ic, BMP085_oss1);
+
     float p = 0.0f, t = 0.0f;
- 
+
+    printf("Entering main loop  ...\r\n");
     while(1) {
         barometer.update();
         p = barometer.get_pressure();
         t = barometer.get_temperature();
-        printf("Pressure: %6.2f Temperature(c): %6.2f Temperature(F): %6.2f\n", p, t, 32 + t * 1.8f);
+        printf("Pressure: %6.2f Temperature(c): %6.2f Temperature(F): %6.2f\r\n", p, t, 32 + t * 1.8f);
         wait(1.0f);
     }
 }