mDot / Mbed OS I2C_scaner_5
Revision:
1:6282a1ee1391
Parent:
0:f4dce843ac31
--- a/main.cpp	Thu Dec 15 09:37:19 2016 +0000
+++ b/main.cpp	Fri Apr 14 02:01:45 2017 +0000
@@ -26,7 +26,10 @@
               printf("I2C device found at address 0x%X", address); //Returns 7-bit addres
               nDevices++;
             }
-
+            else
+            {
+              //printf("I2C write returned error code 0x%X for address 0x%X\n", error, address);
+            }
           }
           if (nDevices == 0)
             printf("No I2C devices found\n");