5Inch HDMI LCD for RPI 800x480

In order for the LCD to work ... my version

Go clone from git the following git repository LCD-show

cd ~ && git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show && sudo ./LCD5-show
    After this, edit with your favorite text editor from console /boot/config.txt (sudo mcedit /boot/config.txt) my favorite is mc (sudo apt install mc -y) and of course, at the end of the file copy the settings from below make sure to have penirq=22 instead of penirq=25 if the touchscreen does not work
 
[all]
hdmi_force_hotplug=1
dtparam=i2c_arm=on
dtparam=spi=on
enable_uart=1
display_rotate=0
max_usb_current=1
config_hdmi_boost=7
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_drive=1
hdmi_cvt 800 480 60 6 0 0 0
dtoverlay=ads7846,cs=1,penirq=22,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900

Finally for calibration if necessary do:

sudo apt install -y xinput-calibrator

and calibrate the screen:

DISPLAY=:0.0 xinput_calibrator

Comentarii

Postări populare de pe acest blog

RpiCar

Building Cross-Platform Desktop Apps with Electron.NET

NodeJS - Npm - set global node_modules