[Guide] ili9341 SPI TFT Screen on Retropie
- facelessloser
- Posts: 13
- Joined: Fri Aug 31, 2018 5:40 am
- Has thanked: 1 time
- Been thanked: 10 times
- Contact:
Re: [Guide] ili9341 SPI TFT Screen on Retropie
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
- moosepr
- Posts: 524
- Joined: Wed Jan 25, 2017 6:18 am
- Has thanked: 69 times
- Been thanked: 241 times
- Contact:
Re: [Guide] ili9341 SPI TFT Screen on Retropie
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
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
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: 13
- Joined: Fri Aug 31, 2018 5:40 am
- Has thanked: 1 time
- Been thanked: 10 times
- Contact:
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Thanks for replyingmoosepr wrote: ↑Mon Oct 15, 2018 10:18 amyou have to use the flexfb driver
https://github.com/notro/fbtft/wiki/flexfb
the one built into fbtft isnt quite right for these screens
This is what I've done so far following the waveshare guild
I edited
Code: Select all
sudo vi /etc/modules
Code: Select all
spi-bcm2835
flexfb
fbtft_device
Code: Select all
sudo vi /etc/modprobe.d/fbtft.conf
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
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
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
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Actually I managed to connect similar screen, not the one I used in original post. I used this bare one: https://ru.aliexpress.com/item/ips-1-3- ... 72356.html Also I used different driver: https://github.com/juj/fbcp-ili9341facelessloser wrote: ↑Sat Oct 13, 2018 5:39 amHey 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
Code: Select all
git clone https://github.com/juj/fbcp-ili9341.git
cd fbcp-ili9341
mkdir build
cd build
cmake -DST7789VW=ON -DGPIO_TFT_DATA_CONTROL=24 -DGPIO_TFT_RESET_PIN=25 -DGPIO_TFT_BACKLIGHT=23 -DSPI_BUS_CLOCK_DIVISOR=30 -DBACKLIGHT_CONTROL=ON ..
make -j
sudo ./fbcp-ili9341
SpoilerShow

- moosepr
- Posts: 524
- Joined: Wed Jan 25, 2017 6:18 am
- Has thanked: 69 times
- Been thanked: 241 times
- Contact:
Re: [Guide] ili9341 SPI TFT Screen on Retropie
looking good 

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
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: 13
- Joined: Fri Aug 31, 2018 5:40 am
- Has thanked: 1 time
- Been thanked: 10 times
- Contact:
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Thanks for posting this, Ive tried out your commands but with a screen on a breakout board like this one https://www.aliexpress.com/item/1-3-Inc ... 41f00e1a8dparizene wrote: ↑Thu Oct 25, 2018 9:26 amActually I managed to connect similar screen, not the one I used in original post. I used this bare one: https://ru.aliexpress.com/item/ips-1-3- ... 72356.html Also I used different driver: https://github.com/juj/fbcp-ili9341facelessloser wrote: ↑Sat Oct 13, 2018 5:39 amHey 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 workCode: Select all
git clone https://github.com/juj/fbcp-ili9341.git cd fbcp-ili9341 mkdir build cd build cmake -DST7789VW=ON -DGPIO_TFT_DATA_CONTROL=24 -DGPIO_TFT_RESET_PIN=25 -DGPIO_TFT_BACKLIGHT=23 -DSPI_BUS_CLOCK_DIVISOR=30 -DBACKLIGHT_CONTROL=ON .. make -j sudo ./fbcp-ili9341
SpoilerShow
I've wired it up to the same pins your using but I cant get it to work. I'm using the screen on a raspberry pi zero w if that helps
Re: [Guide] ili9341 SPI TFT Screen on Retropie
I didn't manage to make it work, probably because of missing CS pinfacelessloser wrote: ↑Sun Oct 28, 2018 5:34 amThanks for posting this, Ive tried out your commands but with a screen on a breakout board like this one https://www.aliexpress.com/item/1-3-Inc ... 41f00e1a8d
I've wired it up to the same pins your using but I cant get it to work. I'm using the screen on a raspberry pi zero w if that helps
- facelessloser
- Posts: 13
- Joined: Fri Aug 31, 2018 5:40 am
- Has thanked: 1 time
- Been thanked: 10 times
- Contact:
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Oh so you couldn't get it to work on the breakout board but could on the bare screen?parizene wrote: ↑Sun Oct 28, 2018 9:27 amI didn't manage to make it work, probably because of missing CS pinfacelessloser wrote: ↑Sun Oct 28, 2018 5:34 amThanks for posting this, Ive tried out your commands but with a screen on a breakout board like this one https://www.aliexpress.com/item/1-3-Inc ... 41f00e1a8d
I've wired it up to the same pins your using but I cant get it to work. I'm using the screen on a raspberry pi zero w if that helps
Re: [Guide] ili9341 SPI TFT Screen on Retropie
yesfacelessloser wrote: ↑Sun Oct 28, 2018 9:49 amOh so you couldn't get it to work on the breakout board but could on the bare screen?
Who is online
Users browsing this forum: No registered users and 1 guest