3.5 Inch LCD TFT Screen Raspberry Pi Display Touch – Install + Fix Inverted colors

Recently I bought an unbranded 3.5” 480×320 SPI TFT touch screen for a hardware CTF challange I am building on a Raspberry Pi.


  • Skip these rubbish screens, they’re a massive pain to set up and have very poor refresh rates (sub 8 FPS)
  • If you’re a masochist and want to learn more, read on…

These little screens fit nicely on top of the Raspberry Pi and you can add a case to hold everything tightly together. There is a different version of the screen that connect via HDMI but I felt it’s bulky and for my project the refresh rate did not matter too much.

LCD screen Raspberry Pi ILI9486

I won’t get into too much technical details, there are heaps of websites describing the controller and framebuffer driver and in the end it’s very hard to find the information that really matters. I will link some of these website at the end of this tutorial for your reference.

The LCD screen I tested is powered by the XPT2046 Touch Controller and ILI9486 driver.

Given there is no driver provided with the LCD screen, after you madly visit countless websites hopefully you will end on this page: LCD driver for the Raspberry PI Installationhttps://github.com/waveshare/LCD-show

The only script that worked with this screen was `LCD35B-show-V2`. The screen started to work however there was one big problem. All the colors were INVERTED.

Raspberry pi LCD inverted colors

It took me a while to figure out a working combination but finally I managed to make it work.  Instead of LCD35B-show-V2 run: LCD35C-show


Don’t restart the Raspberry Pi yet, the screen won’t work. You need to edit `/boot/config.txt`. Towards the end of the file make sure the dtoverlay looks something like:

hdmi_cvt 480 320 60 6 0 0 0

You can play around with the speed, for me ‘24000000’ worked fine.

Now you can reboot your Pi and enjoy your LCD screen.

If this method worked for you drop me a line in the comment section.

Some useful links:

Csaba is passionate about Cyber Security, Pentesting and just making things work.

Leave a reply:

Your email address will not be published.


Site Footer

Sliding Sidebar