I2C - Scan I2C devices
The example will scan the I2C bus for devices that is connected to Ameba. When a device is found, it will be shown on the serial monitor with the address of the device.
Connect the I2C device to I2C_SDA and I2C_SCL of the board.
Open the example in “File” → “Example” → “AmebaWire” → “I2C_Scanner”.
When the I2C bus detect any I2C device, the serial monitor will show the address of the I2C device as shown below:
When there is no I2C device connected to the board, the Arduino IDE serial monitor will show the message below.
You can find detailed information of this example in the documentation of Arduino: