Skip to content

Instantly share code, notes, and snippets.

@melvyniandrag
Last active June 8, 2022 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvyniandrag/f90fd5d22cfd467b28ab324c2c6c5280 to your computer and use it in GitHub Desktop.
Save melvyniandrag/f90fd5d22cfd467b28ab324c2c6c5280 to your computer and use it in GitHub Desktop.
Elecrow 5 inch touch screen rpi config
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 800 400 60 6 0 0 0
dtparam=spi=on
dtparam=i2c_arm=on
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
dtoverlay=w1-gpio-pullup,gpiopin=4,extpullup=1
append the above to your /boot/config.txt
then reboot
then
apt install xinput-calibrator
then run the calibrator. Preferences > calibrate touch screen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment