#include <Wire.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("Test");
Wire.begin();
int count=0;
for (uint8_t address = 0; address < 125; address++) {
Wire.beginTransmission(address);
if ( Wire.endTransmission() == 0 ) {
count++;
Serial.print("Device found at 0x");
Serial.println(address,HEX);
}
}
if (count==0) Serial.println("No device found");
}
void loop() {
}