Hi,
I bought on eBay this display: https://www.ebay.com/itm/TFT-LCD-Touch-Screen-Board-3-5-Inch-TFT-LCD-Shield-3-5-Inch-for-Arduino-Blue/202109852240?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649
I did calibration, screen tests etc. It's not damaged.
I don't know why in my code touch works only in RENDER_BLACK mode. There I see in Serial logging "pressed" or after touch up "Handle".
If I am in mode RENDER_KEYPAD in function isPressed -> point.z is always zero even if I push harder to screen.
Code is avaiable here: https://pastebin.com/w0qNkt8s
Maybe it's software bug. I'm working with TFT and Touch screen first time.
Thanks for your advice.
EDIT: Commenting out renderButton get's working touch.. specially line "lcd.fillRoundRect(x1, y1, x2, y2);" makes it no longer working. Why?