I have a 3.5-inch TFT connected to a RaspberryPi and running the WPE browser project. The web pages comes up fine, but I cannot get the touchscreen input to be rotated / reflected correctly. The model of the display is a XPT2046
and it connected directly to the 40-pin header, much like others I have seen and also the one shown in the WPE ReadMe.
I have the following parameter set:
RESIN_HOST_CONFIG_dtoverlay = "piscreen,speed=24000000,rotate=270"
This rotates the screen, but the touchscreen is upside down and reflected in terms of input.
There are a number of suggestions on this forum and also Google about how to do this, but the ‘piscreen’ dt_overlay
does not have anything to do with the touchscreen reflection. I do not want to have to make changes to the hostOS, which should be possible with the latest images.
Does anyone have any suggestions on how to fix this (such as the Udev in the WPE project or somehow changing the reported co-ordinates within WPE itself)?
Even if I have no rotation, the touchscreen and the display are not aligned in terms of orientation.