Dennis Smith
/
FindI2cAddress
A simple routine to identify i2c devices found
Revision 1:8670d908d9b6, committed 2014-02-26
- Comitter:
- dennyem
- Date:
- Wed Feb 26 01:12:07 2014 +0000
- Parent:
- 0:d0fc558634c4
- Commit message:
- Comments only
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r d0fc558634c4 -r 8670d908d9b6 main.cpp --- 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.