Page 24 of 26

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Sun Sep 02, 2018 8:15 am
by parizene
I have DC pin, I don't have CS pin

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Sat Oct 13, 2018 5:39 am
by facelessloser
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

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Mon Oct 15, 2018 10:18 am
by moosepr
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

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Tue Oct 16, 2018 2:57 am
by facelessloser
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

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Thu Oct 25, 2018 9:26 am
by parizene
facelessloser wrote:
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
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-ili9341

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
Image

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Fri Oct 26, 2018 2:43 am
by moosepr
looking good ;)

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Sun Oct 28, 2018 5:34 am
by facelessloser
parizene wrote:
Thu Oct 25, 2018 9:26 am
facelessloser wrote:
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
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-ili9341

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
Image
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 ... 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

Posted: Sun Oct 28, 2018 9:27 am
by parizene
facelessloser wrote:
Sun Oct 28, 2018 5:34 am
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 ... 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
I didn't manage to make it work, probably because of missing CS pin

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Sun Oct 28, 2018 9:49 am
by facelessloser
parizene wrote:
Sun Oct 28, 2018 9:27 am
facelessloser wrote:
Sun Oct 28, 2018 5:34 am
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 ... 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
I didn't manage to make it work, probably because of missing CS pin
Oh so you couldn't get it to work on the breakout board but could on the bare screen?

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Sun Oct 28, 2018 2:29 pm
by parizene
facelessloser wrote:
Sun Oct 28, 2018 9:49 am
Oh so you couldn't get it to work on the breakout board but could on the bare screen?
yes