[Guide] ili9341 SPI TFT Screen on Retropie

Various user-contributed guides for hardware-related things
User avatar
infinitLoop
Posts: 536
Joined: Mon Dec 24, 2018 11:46 am
Location: Portland, OR
Has thanked: 222 times
Been thanked: 199 times
Contact:

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by infinitLoop » Sun Jun 28, 2020 4:14 pm

grz82 wrote:
Sun Jun 28, 2020 10:04 am
Has anyone had any luck getting an Adafruit 1.54" 240x240 screen to work with retropie? I've used this guide several times to get other screens working (Thanks Moosepr!). I've tried both Juj's and Tasanakorn's software, and I've spent hours googling issues and still no luck. I'm guessing the lack of easily available info means this particular screen is difficult to work with, especially for beginners. Any recommendations on other 1.54" 240x240 screens? Thanks!
this is how i was able to get the same screen with the waveshare board working with the juj driver...

Code: Select all

## get the library...
git clone https://github.com/juj/fbcp-ili9341.git

## make the build dir
cd fbcp-ili9341; mkdir build; cd build

## set driver options
cmake -DSPI_BUS_CLOCK_DIVISOR=6 -DGPIO_TFT_DATA_CONTROL=25 -DGPIO_TFT_RESET_PIN=27 -DGPIO_TFT_BACKLIGHT=18 -DSTATISTICS=0 -DBACKLIGHT_CONTROL=ON -DUSE_DMA_TRANSFERS=OFF -DST7789=ON ..

## compile the driver
make -j

Code: Select all

### then you will need to add to start up
sudo nano /etc/rc.local

## add, before exit 0:
/home/pi/fbcp-ili9341/build/fbcp-ili9341 &
and i think you will want to add this to /boot/config.txt:

Code: Select all

## Display 
hdmi_group=2
hdmi_mode=87
hdmi_cvt=240 240 60 1 0 0 1
hdmi_force_hotplug=1
ignore_lcd=1

framebuffer_width=240
framebuffer_height=240
waveshare_wiring.png
waveshare_wiring.png (181.08 KiB) Viewed 6888 times


grz82
Posts: 6
Joined: Sat Dec 14, 2019 10:57 am
Has thanked: 2 times
Been thanked: 1 time

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by grz82 » Wed Jul 08, 2020 8:06 pm

infinitLoop wrote:
Mon Jun 29, 2020 10:08 am
this is the specific one i'm referring to, btw...

https://www.ebay.com/itm/1-54-inch-TFT- ... 3414789106

not sure how long that link will work tho.

.
Thanks! I grabbed a few of those, I'll let you know if things work out when they arrive

grz82
Posts: 6
Joined: Sat Dec 14, 2019 10:57 am
Has thanked: 2 times
Been thanked: 1 time

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by grz82 » Sat Jul 25, 2020 4:37 pm

infinitLoop wrote:
Mon Jun 29, 2020 10:08 am
this is the specific one i'm referring to, btw...

https://www.ebay.com/itm/1-54-inch-TFT- ... 3414789106

not sure how long that link will work tho.

.
I'll post some pictures of the build I'm working on tomorrow, but the screens you recommended worked flawlessly, first try!

Thanks!


xybots
Posts: 3
Joined: Mon May 13, 2019 1:18 am

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by xybots » Sat Dec 19, 2020 3:01 pm

Hi There

I bought a generic lcd ili9341, its a generic one of Ebay 240x320 LCD Panel 2.8 V1.2 SPI Serial Port Module w/ PCB ILI9341.

I can't seem to make retropie full screen or any of the emulator ie Sonic on the mega drive emulator and I was wondering if any one
can help me.

also how do I switch the details on the screen off

thanks
Attachments
IMG_0721.jpeg
IMG_0721.jpeg (264.24 KiB) Viewed 5361 times
IMG_0723.jpeg
IMG_0723.jpeg (312 KiB) Viewed 5361 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest