#include <Wire.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32-S3!");
Wire.begin(3, 8, 100000);
pinMode(0, INPUT);
pinMode(11, OUTPUT);
digitalWrite(11, LOW);
}
int counter = 0;
void loop() {
// put your main code here, to run repeatedly:
while(true)
{
for (char i = 0; i < 128; i++)
{
digitalWrite(11, LOW);
Wire.beginTransmission(i);
if (Wire.endTransmission() == 0)
{
digitalWrite(11, HIGH);
Serial.print("Device found at address: ");
Serial.println((int)i,HEX);
}
}
}
while(1)
delay(10);
}