[Guide] ili9341 SPI TFT Screen on Retropie

Various user-contributed guides for hardware-related things
parizene
Posts: 9
Joined: Thu Aug 02, 2018 6:21 am

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by parizene » Sun Sep 02, 2018 8:15 am

I have DC pin, I don't have CS pin

facelessloser
Posts: 2
Joined: Fri Aug 31, 2018 5:40 am

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by facelessloser » Sat Oct 13, 2018 5:39 am

parizene wrote:
Sun Sep 02, 2018 8:15 am
I have DC pin, I don't have CS pin
Hey I know this is a old post but did anyone get the 1.3" st7789v screen working, I'm really struggling. I did message waveshare about their hat they make which has the same screen https://www.waveshare.com/1.3inch-lcd-hat.htm, They sent me this on how to get it working https://www.waveshare.com/w/upload/6/6b ... ual_en.pdf but im still not having any luck. Because they are using the bare screen they do have access to the C/S pin, Not sure that is the key to getting it to work

User avatar
moosepr
Posts: 509
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 227 times
Contact:

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by moosepr » Mon Oct 15, 2018 10:18 am

you have to use the flexfb driver

https://github.com/notro/fbtft/wiki/flexfb

the one built into fbtft isnt quite right for these screens
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

facelessloser
Posts: 2
Joined: Fri Aug 31, 2018 5:40 am

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by facelessloser » Tue Oct 16, 2018 2:57 am

moosepr wrote:
Mon Oct 15, 2018 10:18 am
you have to use the flexfb driver

https://github.com/notro/fbtft/wiki/flexfb

the one built into fbtft isnt quite right for these screens
Thanks for replying

This is what I've done so far following the waveshare guild

I edited

Code: Select all

sudo vi /etc/modules
and added this to the file

Code: Select all

spi-bcm2835
flexfb
fbtft_device
Next I made a the fbtft.conf file

Code: Select all

sudo vi /etc/modprobe.d/fbtft.conf
And added this to it

Code: Select all

options fbtft_device name=flexfb gpios=reset:27,dc:25 speed=40000000 bgr=1 f ps=60 custom=1 height=240 width=240
options flexfb setaddrwin=0 width=240 height=240 init=-1,0x11,-2,120,-1,0x36 ,0x70,-1,0x3A,0x05,-1,0xB2,0x0C,0x0C,0x00,0x33,0x33,-1,0xB7,0x35,-1,0xBB,0x1 A,-1,0xC0,0x2C,-1,0xC2,0x01,-1,0xC3,0x0B,-1,0xC4,0x20,-1,0xC6,0x0F,-1,0xD0,0 xA4,0xA1,-1,0x21,-1,0xE0,0x00,0x19,0x1E,0x0A,0x09,0x15,0x3D,0x44,0x51,0x12,0 x03,0x00,0x3F,0x3F,-1,0xE1,0x00,0x18,0x1E,0x0A,0x09,0x25,0x3F,0x43,0x52,0x33 ,0x03,0x00,0x3F,0x3F,-1,0x29,-3
Then I installed rpi-fbcp

Code: Select all

sudo apt-get install cmake git
git clone https://github.com/tasanakorn/rpi-fbcp
cd rpi-fbcp/
mkdir build
cd build
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp
I added this to the bottom of the /boot/config.txt file

Code: Select all

sudo vi /boot/config.txt

hdmi_force_hotplug=1
hdmi_cvt=300 300 60 1 0 0 0
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
display_rotate = 1

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests