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.

Changes

RevisionDateWhoCommit message
8:ead6147e31a4 2016-03-30 joeata2wh Update to use standard MIT license default tip
7:5962e77516ac 2016-03-20 joe ellsworth test
6:02a058f2ec6f 2016-03-21 joeata2wh updated comments
5:a4fddd74263c 2016-03-21 joeata2wh removed obsolete diagnostic line
4:ad1195c10812 2016-03-21 joeata2wh working
3:8def8fb70765 2016-03-21 joeata2wh fix type error
2:e90c47d4f358 2016-03-20 joeata2wh updated comment
1:2363995f603f 2016-03-20 joeata2wh working version
0:befb557584fb 2016-03-20 joeata2wh initial version