Dragan Grgić / Mbed 2 deprecated i2c-scanner

Dependencies:   mbed

Fork of i2c scanner by R K

Revision:
1:22bad558be6c
Parent:
0:d58e47b3cc7e
--- a/main.cpp	Tue Jun 28 18:29:49 2016 +0000
+++ b/main.cpp	Sat Sep 09 10:50:12 2017 +0000
@@ -1,13 +1,8 @@
 #include "mbed.h"
-I2C i2c(D14, D15);        // sda, scl
-Serial pc(USBTX, USBRX); // tx, rx
+#include "SensorBoards.h"
+
 
 int main()
 {
-    pc.printf("RUN\r\n");
-    for(int i = 0; i < 128 ; i++) {
-        i2c.start();
-        if(i2c.write(i << 1)) pc.printf("0x%x ACK \r\n",i); // Send command string
-        i2c.stop();
-    }
+    
 }
\ No newline at end of file