#include void setup() { Serial.begin(115200); delay(500); Serial.println("\nESP32-C3 I2C Scanner (default pins)"); // Use board-defined default I2C pins Wire.begin(); Wire.setClock(100000); // slow & safe Serial.println("Scanning I2C bus..."); } void loop() { int found = 0; for (uint8_t addr = 1; addr < 127; addr++) { Wire.beginTransmission(addr); uint8_t error = Wire.endTransmission(); if (error == 0) { Serial.printf("✅ Device found at 0x%02X\n", addr); found++; } } if (found == 0) { Serial.println("❌ No I2C devices found."); } else { Serial.printf("Total devices found: %d\n", found); } Serial.println("------------------------------"); delay(3000); }