#include Adafruit_I2CDevice i2c_dev = Adafruit_I2CDevice(0x10); void setup() { // Initialize serial port while (!Serial) { delay(10); } Serial.begin(115200); } void loop() { Serial.println("I2C address detection test"); // Loop throuth all possible i2c addresses for (char i = 0; i < 127; i++) { // Send address Adafruit_I2CDevice i2c_dev = Adafruit_I2CDevice(i); // If response on address, print address if (i2c_dev.begin()) { Serial.print("Device found at 0x"); Serial.println(i2c_dev.address(), HEX); } } // Wait 5 seconds, then rescan delay(5000); }