esp32 S3 problem i2c communication

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

esp32 S3 problem i2c communication

Postby maggymtac » Sat Aug 20, 2022 7:04 am

Hello,

I have a code works fine with ESP32 C3 but not with ESP32 S3 the lcd not display a word.

I use Scanning code function to see what is the problem:

Code: Select all

 byte error, address;
  int nDevices;

  Serial.println("Scanning...");

  nDevices = 0;
  for(address = 1; address < 127; address++ ) 
  {
    // The i2c_scanner uses the return value of
    // the Write.endTransmisstion to see if
    // a device did acknowledge to the address.
    Wire.beginTransmission(address);
    error = Wire.endTransmission(false);
    if (error == 0) {
      Serial.print("I2C device found at address 0x");
      if (address<16) {
        Serial.print("0");
      }
      Serial.println(address,HEX);
      nDevices++;
    }
    else if (error==4) {
      Serial.print("Unknow error at address 0x");
      if (address<16) {
        Serial.print("0");
      }
      Serial.println(address,HEX);
    }    
  }
  if (nDevices == 0) {
    Serial.println("No I2C devices found\n");
  }
  else {
    Serial.println("done\n");
  }
  delay(5000); 
i get this traces:


Do you know what is the problem?

Thank you.
Attachments
Capture d’écran de 2022-08-20 09-03-47.png
Capture d’écran de 2022-08-20 09-03-47.png (146.94 KiB) Viewed 2573 times

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

Re: esp32 S3 problem i2c communication

Postby maggymtac » Sat Feb 11, 2023 5:50 pm

Hello,

Someone have a solution please?

Thank you.

Who is online

Users browsing this forum: No registered users and 141 guests