Example of i2c scanner for RHOMBIO_L476DMW1K

This example is known to work well on the following platforms: RHOMBIO_L476DMW1K

The example code scans any I2C peripheral attached to the kit, whether it is any rhomb.io slave module attached to Deimos carrier board or any external peripheral wired to SDA, SCL and GND pins available on Deimos pin header H2.

The code also prints out the result, showing the address of any device found on the I2C bus.

This example code should give you an output similar to this:


Rhomb.io example code - I2C Scanner

Searching for I2C devices...

I2C device found at address 0x60 (0xC0 in 8-bit)

1 device. found


PS: RHOMBIO_L476DMW1K IoT kit comes with a ATECC608A crypto authentication memory on board, which is connected to the I2C bus. Its I2C slave address is 0x60, that's the device found by the example code when no other I2C device has been connected to the kit.

History

added MIT license default tip

2019-09-10, by galonso@rhomb.io [Tue, 10 Sep 2019 15:17:47 +0200] rev 1

added MIT license


first commit

2019-09-10, by galonso@rhomb.io [Tue, 10 Sep 2019 15:06:32 +0200] rev 0

first commit