Skip to content

Instantly share code, notes, and snippets.

View matkarlg's full-sized avatar

Mathias Karlgren matkarlg

  • Göteborg / Gothenburg, Sweden
View GitHub Profile
@matkarlg
matkarlg / config.md
Last active April 29, 2024 01:31
XPT2046/ADS7846 Touchscreen Android AOSP Raspberry PI RPi

CONFIG_TOUCHSCREEN_ADS7846=y in kernel config

Compile overlay and add: (maybe different per tablet, goodtft/LCD-show)

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

Add ADS7846_Touchscreen.idc to /system/usr/idc/

ADS7846_Touchscreen.idc: