So after hours of searching i don't know what to try.
I used https://www.waveshare.com/wiki/5inch_HDMI_LCD for a new set-up, due to the lack of room I had to turn the screen 180°.
I added the line: dtoverlay=ads7846,penirq=25,xmin=120,xmax=3960,ymin=300,ymax=3900,speed=50000, to config.txt, to make touch work.
And video=HDMI-A-1:800x480M@60,rotate=180 to cmdline.txt, to turn the screen 180*
Now I have the problem that the cursor is on the correct position, but upside down and the position of a click is inverted. If I want to click the m I have to click on in the opposite corner. I tried adding invx and invy which did not work. I also tried inverting xmin xmax values, which just inverted the position of the cursor.
Other setup Rpi 3b+, moode 9.1.4
I used https://www.waveshare.com/wiki/5inch_HDMI_LCD for a new set-up, due to the lack of room I had to turn the screen 180°.
I added the line: dtoverlay=ads7846,penirq=25,xmin=120,xmax=3960,ymin=300,ymax=3900,speed=50000, to config.txt, to make touch work.
And video=HDMI-A-1:800x480M@60,rotate=180 to cmdline.txt, to turn the screen 180*
Now I have the problem that the cursor is on the correct position, but upside down and the position of a click is inverted. If I want to click the m I have to click on in the opposite corner. I tried adding invx and invy which did not work. I also tried inverting xmin xmax values, which just inverted the position of the cursor.
Other setup Rpi 3b+, moode 9.1.4