I2C address scanner - Scans I2C bus on specified pins and prints all addresses where a active responder is found.

Dependencies:   mbed

Find address for I2C device

Scans all addreses on a I2C bus and reports those it is able to sucessfully communicate with.

One problem with I2C is that sometimes we receive chips without proper documentation and can not determine what address we should use ot communicate with that chip. This library seeks to identify the chips by attempting to communicate with each address and if it suceeds it assumes there is a chip present.

I have tested this with a clock chip, temperature sensor, OLED device and FRAM chip. It worked for all of them but there is a chance that some chips will not respond without a specific API call so there may be some chips it could not locate.

Revision:
8:ead6147e31a4
Parent:
7:5962e77516ac
--- a/main.cpp	Sun Mar 20 21:39:52 2016 -0700
+++ b/main.cpp	Wed Mar 30 14:58:05 2016 +0000
@@ -1,8 +1,12 @@
 /* Scan I2C bus on specified pins and prints out
 * the all address where an active device responds.
 *
-* By Joe Elsworth CTO of A2WH
-* Free use for all but no warranty, no promises.
+  By Joseph Ellsworth CTO of A2WH
+  Take a look at A2WH.com Producing Water from Air using Solar Energy
+  March-2016 License: https://developer.mbed.org/handbook/MIT-Licence 
+  Please contact us http://a2wh.com for help with custom design projects.
+
+  
 * Don't forget 3K pull-up resistors on sda,scl 
 * 
 * I tested this by soldering in a I2C chip known to respond at