- I have been frustrated on how to make this LCD work. I spent almost one week (on and off) to figure this out. So, I will make a guide on how this LCD is installed, because there are no direct guide on how to install it.
This is what the LCD looks like
It is a bit odd because there are no brands on the back, although from a couple of research they said that this LCD shares the same driver as the Waveshare 3.5inch.
Tutorial on how to install (from a fresh image installation of Jessie 2016-03-18):
Standard update & upgrade
sudo apt-get update && sudo apt-get upgrade
Expand file system
sudo raspi-config
Choose option number 1 -> Yes -> Reboot
Install the fbtft driver (now included on rpi-updatesudo rpi-update)
sudo rpi-update
Change fb0 to fb1
sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf
NB: Steps after are the tutorial from the swkim01’s GitHub.
Clone his repo to your Pi
git clone https://github.com/swkim01/waveshare-dtoverlays.git
Copy the overlay file to /boot/overlay as root
sudo cp waveshare-dtoverlays/waveshare35a-overlay.dtb /boot/overlays
Add this on /boot/config.txt
dtparam=spi=on
dtoverlay=waveshare35a
gpu_mem=128
Permanently add driver to /etc/modules
flexfb width=320 height=480 regwidth=16 init=-1,0xb0,0x0,-1,0×11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0×36,0x28,-1,0×11,-1,0×29,-3
fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24
Additional settings, add to /boot/cmdline.txt
fbcon=map:1 fbcon=font:ProFont6x11
Reboot and you should be seeing the LCD works
Additional Notes:
Plug your LCD to the Raspi while working the tutorial
Reboot if told
If the screen go white, then black, you probably missed the last step
All credit goes to:
swkim01 https://github.com/swkim01
DirkS https://www.raspberrypi.org/forums/viewtopic.php?f=45&t=136558
Thread that helped me figure things out https://github.com/notro/fbtft/issues/215