I2C conflict with touch on ESP32-3248S035C

Here we can discuss about the problem found
Post Reply
botman
Posts: 103
Joined: Thu Apr 01, 2021 3:04 pm
Has thanked: 19 times
Been thanked: 53 times

I2C conflict with touch on ESP32-3248S035C

Post by botman »

I enjoy using the ESP32-3248S035C board for my Annex32 projects, but when I connected a BME280 on the CN1 port and used the example BME280 code in the Annex documentation, the touch screen would stop working until I power-cycled the board. I'm using version Annex32 CAN 1.53.4 LFS . I knew that the ESP32-3248035C has an I2C touch controller, so I guessed that initializing the I2C to pins 21 and 22 in the BASIC code may have disconnected the I2C from the touch controller. By initializing the I2C back to the touch controller pins whenever the program is not actually sending commands to the BME280 and initializing the I2C to the CN1 port immediately before communicating with the BME280, it is possible to use both touch and external I2C in the same program.
BME280example.bas
You do not have the required permissions to view the files attached to this post.
User avatar
cicciocb
Site Admin
Posts: 2781
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 592 times
Been thanked: 1989 times
Contact:

Re: I2C conflict with touch on ESP32-3248S035C

Post by cicciocb »

HI,
thanks for your feedback but I don't understand why you consider this as a bug,

Unfortunately the I2C is connected internally on the pins 33 and 32 and using other pins will disconnect the I2C from the touch controller.

Probably this should be considered more as code tip.
Post Reply