Mbed OS (mbed 5) version of mbed 2 I2C_scanner app

Files at this revision

API Documentation at this revision

Comitter:
Roietronics
Date:
Fri Apr 14 02:01:45 2017 +0000
Parent:
0:f4dce843ac31
Commit message:
Update to MBED OS 5.4 release

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
--- 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");
--- a/mbed-os.lib	Thu Dec 15 09:37:19 2016 +0000
+++ b/mbed-os.lib	Fri Apr 14 02:01:45 2017 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#d5de476f74dd4de27012eb74ede078f6330dfc3f
+https://github.com/ARMmbed/mbed-os/#42be5c01a7f91292d5e27124ad9584236025f6ab