firmware icon indicating copy to clipboard operation
firmware copied to clipboard

Touchscreen inverted on ESP32 WROOM 32U + 2.8" TFT SPI 240*320 v1.2 ILI9341 touchscreen display

Open payamkh18168-source opened this issue 1 month ago • 9 comments

Hi friends,

I have an ESP32 WROOM 32U + 2.8" TFT SPI 240*320 v1.2 ILI9341 touchscreen display. I’ve done the wiring and installed the Bruce firmware 1.16.1. The screen works, but the touch input is inverted - both X and Y axes are flipped. Changing the screen rotation in bruce.conf only rotates the display, not the touch coordinates.

Please send for me a firmware (.bin) that have not touchscreen problems . thanks

payamkh18168-source avatar Oct 14 '26 20:10 payamkh18168-source

You don't need a different firmware version. Here's a step-by-step guide on how to fix it:

Step 1: Go to littlefs files and delete the file calData

Step 2: Restart your device

Step 3: The screen will prompt you to calibrate it AGAIN, BUT when it shows that you need to press the upper left corner, then press the lower left, and so on for all corners, press the opposite one

Done This way you will force the library to accept the correct values, and you won't need to change the code.

DESVOR8 avatar Oct 17 '26 04:10 DESVOR8

Image Image

I checked LittleFS but the calData file isn’t there. bruce.conf and brucePins.conf are there, I deleted them but it didn’t help. Also, I didn’t see Calibration in this Bruce system. The HaleHound firmware has calibration, but I want Bruce.

also In this post, I saw that they changed the source, but I don’t know how to compile. Also, I don’t know which Bruce I’m supposed to compile.

https://github.com/BruceDevices/firmware/issues/1823

thanks

payamkh18168-source avatar Oct 17 '26 10:10 payamkh18168-source

Image Please specify which version (type) of the firmware you installed — not 1.16.1, but indicate which one from those shown in the picture:

DESVOR8 avatar Oct 18 '26 13:10 DESVOR8

Image

I had installed this. Which one should I install?

payamkh18168-source avatar Oct 18 '26 14:10 payamkh18168-source

Hello. So, I looked at the source code and it turns out that due to a missing flag, the code responsible for calibration and this file wouldn't compile or run at all.

It is really impossible to fix this problem without reflashing the firmware.

In principle, if you're not too lazy, you can download the repository and edit the code. Adding this flag is not necessary; simply changing the input_handler in the interface file is sufficient.

DESVOR8 avatar Oct 18 '26 14:10 DESVOR8

Thanks Brother

5. Hello. So, I looked at the source code and it turns out that due to a missing flag, the code responsible for calibration and this file wouldn't compile or run at all. It is really impossible to fix this problem without reflashing the firmware.

In principle, if you're not too lazy, you can download the repository and edit the code. Adding this flag is not necessary; simply changing the input_handler in the interface file is sufficient.

payamkh18168-source avatar Oct 18 '26 15:10 payamkh18168-source

Thanks Brother

I set up this circuit according to this video. I also tested it with a 2.4" display, but it didn't work. In other words, it works but the touch is flipped. also keyboard

https://www.youtube.com/watch?v=1dC_abmQvzA

payamkh18168-source avatar Oct 18 '26 15:10 payamkh18168-source

https://youtu.be/1dC_abmQvzA?t=239&si=QIZoumgDb9lnZKGa (A specific moment from the video is indicated - 4:00)

Hello. I watched your video and saw that even the author's touchscreen is inverted along the Y axis.

DESVOR8 avatar Oct 18 '26 23:10 DESVOR8

Image

Hello brother,
In line 205, I changed the line code from
touch.setMirrorXY(false, true);
to picture, and it worked. Of course, in another part of the code the color was also inverted, which I changed too, and it worked.

payamkh18168-source avatar Oct 25 '26 10:10 payamkh18168-source