Jump to content

Recommended Posts

Posted

Hello, 

I've been trying to interface Kedei hdmi 3.5 inch hdmi lcd (480x320) with orangepi one.
So far i"ve been unable to display anything on lcd using Armbian mainline kernal image.

But with legacy kernal using h3disp command i was able to change the resolution but the lcd than gave message " Not Supported".

Can someone please help me how to do this?

Posted

This was tricky enough on raspberry pi, an unsupported screen on a supported platform, where I finally got it working. I haven't even tried to get it working on this half-supported platform.
What I had to do on raspberry was add one line to /boot/config.txt

dtoverlay=ads7846,cs=0,penirq=25,penirq_pull=2,speed=10000,keep_vref_on=0,swap_xy=1,pmax=255,xohms=150,xmin=5837,xmax=35819,ymin=59198,ymax=27978
please note that the [xy][min|max] are calibrated values for my screen.

And I needed this in a new file in /usr/share/X11/x.org.conf called 98-calibration.conf

Section "InputClass"
        Identifier "calibration"
        MatchProduct "ADS7846 Touchscreen"
        Option  "MinX" "5837"
        Option  "MaxX" "35819"
        Option  "MinY" "27978"
        Option  "MaxY" "59198"
        Option  "SwapXY" "1"
        Option  "SwapAxes" "1"
        Option  "InvertX" "0"
        Option  "InvertY" "1"
        Option  "TransformationMatrix" "1 0 0 0 -1 1 0 0 1"
EndSection
I think I added these max and min x and y values in one place more than I needed, but when it finally worked,.....
The dtoverlay ads7846 is not compiled for armbian as far as I know. I don't even have the source code.

good luck.

Posted
On 26/01/2018 at 8:53 PM, FredrikA said:

This was tricky enough on raspberry pi, an unsupported screen on a supported platform, where I finally got it working. I haven't even tried to get it working on this half-supported platform.
What I had to do on raspberry was add one line to /boot/config.txt

dtoverlay=ads7846,cs=0,penirq=25,penirq_pull=2,speed=10000,keep_vref_on=0,swap_xy=1,pmax=255,xohms=150,xmin=5837,xmax=35819,ymin=59198,ymax=27978
please note that the [xy][min|max] are calibrated values for my screen.

And I needed this in a new file in /usr/share/X11/x.org.conf called 98-calibration.conf

Section "InputClass"
        Identifier "calibration"
        MatchProduct "ADS7846 Touchscreen"
        Option  "MinX" "5837"
        Option  "MaxX" "35819"
        Option  "MinY" "27978"
        Option  "MaxY" "59198"
        Option  "SwapXY" "1"
        Option  "SwapAxes" "1"
        Option  "InvertX" "0"
        Option  "InvertY" "1"
        Option  "TransformationMatrix" "1 0 0 0 -1 1 0 0 1"
EndSection
I think I added these max and min x and y values in one place more than I needed, but when it finally worked,.....
The dtoverlay ads7846 is not compiled for armbian as far as I know. I don't even have the source code.

good luck.

Hmm. Ok. Thanks for the reply

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines