ImpulseAdventure / GUIslice

GUIslice drag & drop embedded GUI in C for touchscreen TFT on Arduino, Raspberry Pi, ARM, ESP8266 / ESP32 / M5stack using Adafruit-GFX / TFT_eSPI / UTFT / SDL
https://www.impulseadventure.com/elec/guislice-gui.html
MIT License
1.12k stars 206 forks source link

New TFT 3.5" v2.0 comes with HR2046 instead of XPT2046 and doesn't work #396

Closed Akrai closed 3 years ago

Akrai commented 3 years ago

So I've been using the classic 3.5" TFT display (v1.0 label printed on the PCB), but I broke it and bought another again. Now from this store as the previous one just closed: https://es.aliexpress.com/item/32985467436.html The picture states v1.0, but I received a v2.0 Images: https://imgur.com/a/xvoJspn

So without modifying anything from the code, it just doesn't work. I tought that it could be just the calibration, that the new coordinates are outside of the new screen, so I just compiled the diag_ard_touch_calib but still doesn't respond to touch I haven't found anything about the HR2046 so I don't know what to do

STM32F411 v3.0 blackpill running it guislice config.txt tft espi config.txt

ImpulseAdventure commented 3 years ago

Hi @Akrai -- for your particular configuration, GUIslice is relying on TFT_eSPI for handling the touch events.

First step would be to run the TFT_eSPI touch examples (without GUIslice), to ensure that the TFT_eSPI library is working properly with your new display. You should rule out any damage to the touch overlay and also confirm whether any configuration needs to be updated within TFT_eSPI.

Examples to look at:

thx

Akrai commented 3 years ago

Oh that's right. I'll try to make the TFT_eSPI to work with the example programs. If I make those run but GUISlice doesn't work, I'll tell you here, otherwise I'm gonna close this issue for now, thanks!