A simple routine to identify i2c devices found

Dependencies:   mbed

Revision:
1:8670d908d9b6
Parent:
0:d0fc558634c4
--- a/main.cpp	Wed Feb 26 01:09:24 2014 +0000
+++ b/main.cpp	Wed Feb 26 01:12:07 2014 +0000
@@ -5,7 +5,8 @@
 Serial pc(USBTX, USBRX);
 I2C    i2c(P0_10, P0_11);       // sda, scl
 
-/** This function writes the slave address to the i2c bus. 
+/**
+ * This function writes the slave address to the i2c bus. 
  * If a slave chip is at that address, it should respond to 
  * this with an "ACK".   This function returns TRUE if an 
  * ACK was found.  Otherwise it returns FALSE.