CYD ESP32-2432S024 I2C pin does not work

I just bought a CYD ESP32-2432S024, tried gpio pins 22 and 21 for i2c, none of them worked even the i2c scanner didn't work either. What's wrong with this board?

if your CYD is similar to my 2.8_LCD_TFT_Touch_Screen Module GPIO21 is used for TFT BL
for I2C I used ESP32 SDA to GPIO27 SCL to GPIO22

is your module with rgb on the front, on my module 27 is the lcd blacklight pin?

my 2.8" CYD is a Freenove_ESP32_Display

if GPIO21 and 22 are available on your CYD for I2C it should work

you could try explicitly setting

  Wire.begin(21, 22);  // SDA and SCL

what tools>Board setting did you use? I tend to use ESP32 Dev board

what I2C device are you attempting to connect?

yes i have tried that and it doesn't work, i am using esp32-2432s024 resistive with esp32 module from spakle iot xh-32s

maybe worth having a look at can-someone-explain-the-sparkle-xh-32s-i-thought-i-was-getting-esp-32

You can also look at the schematics for the original CYD. Although pin IO21 is broken out to a header it is also used to drive the display back light (as on the device Horace has)

Find an unused but broken out pin and what ever you connect to the device must share its common ground.

you gave the wrong version, mine is not the ESP32-2432S028 version

Sorry about that.
Unfortunately, there are many near clones of the CYD and unless you find the documentation for your specific model you will have difficulties.
The 24 at the end of the reference number you have quoted almost certainly indicates that it is a 2.4" screen version of the original which had a 2.8" (ILI9341) display so there is no reason that the original schematics have not been used at least as a guide.

Here's a schematics of ESP32-2432S024:

2432S024-2-V1.0.png.zip (90.0 KB)
ESP32-2432S024-1-V1.0.png.zip (93.0 KB)

the the display I have which uses I2C

  Wire.begin(27, 22);  // SDA and SCL

is a Freenove 2.8" - have connected several sensors using this setting
I also have a Freenove 4.0" and used I2C on GPIOs

#define SDA_PIN 32   // Replace with your SDA pin
#define SCL_PIN 25   // Replace with your SCL pin

and SPI on

// HT_62  SX1262 has the following connections:
// MOSI 23
// MISO 19
// SCK 18
// CS 21

// NSS pin:   21
// DIO1 pin:  35
// NRST pin:  -1
// BUSY pin:  39
SX1262 radio = new Module(21,35,-1,39);////5, 14, 12, 13); // NSS DIO1 RST BUSY

to connect a HT_62 SX1262 LoRa module

When you used the I2C scanner, did you add pull up resistors (say 10k) on whatever pins you used for SDA and SCL ?

Do I have to sacrifice the special pin of the hand touch ic?

I used BM280 and a ATLAS_EZO_pH_DO modules which onboard pullup resistors

Yes, I also tested several BMP280, MPU6050, and OLED LCD modules. None of them were readable. Default pin i2c esp32 21,22

did the I2C scanner show anything?

have you an oscilloscope to check for signals on the pins?

I don't have an oscilloscope, this is the first time I've encountered this problem. I usually use a regular esp32, but the esp32 cyd already has a 10k pull-up on pin 21.

This block has a label "capacitive touch" on one of those schematics you have posted so is probably not relevant here:

I was wondering what "CTP" meant, and I see you're right !

Looking at pin 21, it seems to say "Temperature and Humidity Sensor" in Chinese, so I think it's referring to something like the DHT11.

Edit: It looks like CN1 and P3 are both connected to IO21 and IO22, but what do you think?

Yes it is possible and it is possible to install a resistor considering the dht11 does not have a pull up. I've tried all the pins, none of them work, even the RGB pins can't be used to control the lights.