Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Interfacing (DSI, CSI, I2C, etc.) • Re: Small TFT based on ILI9341 ST7789 - how to use

$
0
0
Ok, I figured it out... to have a 2 pixel offset to the right, we need in the config.txt:

dtoverlay=mipi-dbi-spi-format-parameter,spi0-0,speed=60000000
dtparam=compatible=4in\0panel-mipi-dbi-spi
dtparam=width=478,height=320,width-mm=35,height-mm=28
dtparam=reset-gpio=25,dc-gpio=24
dtparam=write-only,cpha,cpol
dtparam=format=b6x2g6x2r6x2
dtparam=x-offset=2
dtoverlay=ads7846,cs=1,penirq=23,speed=1000000,keep_vref_on=1,swapxy=1,xohms=60

Now all the console characters show 100%, and the cursor doesn't get shaved off in the GUI :D

Statistics: Posted by robertojguerra — Fri Oct 31, 2025 6:25 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles