ESP32 Wifi Kit v3 with USB C Display wont work

Hey, I want to use my wifi kit v3 (the one with usb c)for showing text. I want to use the Arduino IOT Cloud, so i use the online editor of the IDE.
Here is my code:


#include "thingProperties.h"
#include "Wire.h"
#include "Arduino.h"
#include "SSD1306.h"

SSD1306Wire display(0x3c, 19, 18, GEOMETRY_128_64, I2C_ONE, 700000);

const int PotPin = 4;
const int Vext = 21;

void VextON(void)
{
  pinMode(Vext ,OUTPUT);
  digitalWrite(Vext , LOW);
}

void VextOFF(void) //Vext default OFF
{
  pinMode(Vext ,OUTPUT);
  digitalWrite(Vext , HIGH);
}

void setup() {
  // for OLED Screen
  VextON();
  delay(100);
  
  display.init();
  display.clear();
  display.display();
  display.drawString(0, 10, "Hello World");
  display.display();
  
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  pinMode(19,OUTPUT);
  pinMode(PotPin,INPUT);
  
  
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 
  

  // Defined in thingProperties.h
  initProperties();

  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  
  /*
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
 */
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
}

void loop() {
  ArduinoCloud.update();
  // Your code here 
  poti = analogRead(PotPin);
  
}


/*
  Since LED is READ_WRITE variable, onLEDChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onLEDChange()  {
  if(lED==1){
    digitalWrite(19,HIGH);
  }
  else{
    digitalWrite(19,LOW);
  }
  // Add your code here to act upon LED change
}

/*
  Since Poti is READ_WRITE variable, onPotiChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onPotiChange()  {

  if(poti>=0 && poti<=1000){
    Serial.print("Potivalue:");
    Serial.print(poti);
    delay(1000);
  }
}

It uploads but it wont show anything (should show Hello World). I defined the Vext Pin to be 21 SDA to be 19 and SCL to be 18 because i read it on the internet.
Does anybody know where the error is ?

SDA is on pin 17, not pin 19.

Hey, thanks but i tried it and it doesnt work either, do you have any idea whats wrong ?

Does the FactoryTest sketch show anything on the display? I can see that the information (frequency?) in its constructor is a little different to yours:

SSD1306Wire factory_display(0x3c, 500000, SDA_OLED, SCL_OLED, GEOMETRY_128_64, RST_OLED); // addr , freq , i2c group , resolution , rst

This sketch also seems to use a different display library (HT_SSD1306Wire).

Maybe there’s a clue in there that will help.