Quantcast
Channel: Squeezebox : Community : Forums - Linux / Unix
Viewing all articles
Browse latest Browse all 1518

pCP - ADS7846 Touch.... but Y inverted

$
0
0
I have a Kedei/waveshare ADS7846 + HDMI display which in config text has

Code:

dtoverlay=ads7846,cs=0,penirq=25,swapxy=1,speed=10000,penirq_pull=2
,keep_vref_on=1,xohms=150

I run

Code:

tc@piCorePlayer:~$ sudo TSLIB_TSDEVICE=/dev/input/event0 /usr/local/bin/ts_calibrate
xres = 480, yres = 320
Took 6 samples...
Top left : X =  265 Y = 3728
Took 4 samples...
Top right : X = 3824 Y = 3844
Took 5 samples...
Bot right : X = 3869 Y =  271
Took 6 samples...
Bot left : X =  260 Y =  254
Took 3 samples...
Center : X = 1977 Y = 1986
-23.010315 0.128281 0.000717
328.396729 0.001586 -0.085109
Calibration constants: -1508004 8406 47 21521808 103 -5577 65536

Which all works when I run tc_test.

So when Jivelive fires up and gives language selection, the Y is inverted. X is fine.

I also tried swapping swapxy=0 and re running the calibrate.

The ribbon connector is top right and the jivelite orientation matches the "boot" orientation.

For info grabbed from the waveshare site I also added this lot, which was mainly as I was dropping the resolution to 480
Code:

hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 480 320 60 6 0 0 0
hdmi_drive=2

How can I swap the Y?

Viewing all articles
Browse latest Browse all 1518

Trending Articles