This recipe will show you how to scan for I2C devices connected to the bus using the i2c object. The I2C protocol supports multiple devices being connected to a single I2C connection. One of the first steps in connecting to a device is to scan and list all detected devices. This recipe will help you troubleshoot an I2C device to confirm that it is connected and can be found in scans. It can also help you build Python scripts that can automatically scan and detect multiple devices.
Discovering I2C devices
Getting ready
You will need access to the REPL on the Adafruit HalloWing board to run the code presented in this recipe.