[Guide] ili9341 SPI TFT Screen on Retropie

Various user-contributed guides for hardware-related things
User avatar
NimbleJoshua
Posts: 17
Joined: Tue Feb 06, 2018 1:17 pm
Location: Central New York
Has thanked: 8 times
Been thanked: 5 times

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by NimbleJoshua » Thu May 31, 2018 12:27 pm

Trekintosh wrote:
Thu May 31, 2018 8:39 am
NimbleJoshua wrote:
Wed May 30, 2018 5:40 pm
I ended up buying this: https://www.ebay.com/itm/120992687186
Nothing should go wrong with this display. I hope.
How are you planning on connecting it?
I'm going to use the PCB I got with my other 37 pin display. It should work, I think.

EDIT: So the screen arrived in the mail..
I removed the other screen from the PCB and soldered this one on, but I can only get the backlight to illuminate. It won't show the console with

Code: Select all

con2fbmap 1 1
The wiring is all the same, everything is untouched since the last screen was tested.
Here's the description of the new screen.

And here's the screen that works.

Does anyone know why this new one isn't working?

halasu
Posts: 2
Joined: Tue Mar 13, 2018 6:27 am
Has thanked: 2 times

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by halasu » Fri Jul 20, 2018 2:11 am

bitbank wrote:
Wed May 10, 2017 9:45 am
I'm working on a custom game emulator project which uses all of my own code and talks directly to the SPI TFT. Many games are able to run at 60fps and all games run with considerably less input lag and no display tearing compared to the retropie+fbtft+fbcp setup. The code currently uses smart buffer management to only send the parts of the display which change each frame. I'm working on adding support for the hardware scroll register of the ili9341 to make side-scrollers run at 60fps too. It currently supports many coin-op, Gameboy, GameGear/SMS, TG16, NES and Genesis. Not all of the emulators have the same level of compatibility as the ones used in retropie because I wrote every line of code myself as a hobby. Let me know if anyone would like to beta test it and I'll work with you to get it running on your hardware.

A video sample of how it looks:

https://goo.gl/photos/9DsgvQswbdPwUUuDA

Sound is working with certain hardware (Pi0 pwm output) and hdmi.
The video is very cool.
Can I see the circuit I made?

halasu
Posts: 2
Joined: Tue Mar 13, 2018 6:27 am
Has thanked: 2 times

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by halasu » Fri Jul 20, 2018 2:13 am

bitbank wrote:
Fri May 12, 2017 9:36 am
abrugsch wrote:
Fri May 12, 2017 7:59 am
wow that sounds awesome!
I just added ASCII configuration file parsing to allow customization for any hardware. It can read GPIO pins directly for game inputs (no Linux drivers needed) or gamepads/keyboard. Do you have a RPi with a ili9341 LCD connected? I can share the executable if you'd like to give it a spin.
Can you share executable files? :D

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by VeteranGamer » Fri Jul 20, 2018 5:42 am

halasu wrote:
Fri Jul 20, 2018 2:13 am
bitbank wrote:
Fri May 12, 2017 9:36 am
abrugsch wrote:
Fri May 12, 2017 7:59 am
wow that sounds awesome!
I just added ASCII configuration file parsing to allow customization for any hardware. It can read GPIO pins directly for game inputs (no Linux drivers needed) or gamepads/keyboard. Do you have a RPi with a ili9341 LCD connected? I can share the executable if you'd like to give it a spin.
Can you share executable files? :D


this may or may not be of any help......

https://github.com/bitbank2/SPI_LCD



.

parizene
Posts: 13
Joined: Thu Aug 02, 2018 6:21 am

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by parizene » Thu Aug 02, 2018 6:28 am

Hi, is it a correct config for my display? My setup: reset=RES, dc=DC, led=BLK; attached SCL to BCM 11 (SCLK), SDA to BCM 10 (MOSI); MISO (probably not needed, because no output from display) and CE (no CS pin on display board) pins are not used.

Code: Select all

options fbtft_device custom name=fb_st7789v gpios=reset:17,dc:27,led:22 speed=40000000 bgr=1 fps=60 width=240 height=240
SpoilerShow
Image

User avatar
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

Post by moosepr » Thu Aug 02, 2018 9:40 am

Is this the 1.5 inch version from AliExpress?
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

parizene
Posts: 13
Joined: Thu Aug 02, 2018 6:21 am

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by parizene » Thu Aug 02, 2018 3:42 pm

moosepr wrote:
Thu Aug 02, 2018 9:40 am
Is this the 1.5 inch version from AliExpress?
1.3, probably this one http://www.tslcd.com/uploadfile/attachm ... 266d83.pdf

User avatar
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

Post by moosepr » Fri Aug 03, 2018 1:13 am

Ah ok, there is a 1.5 inch screen knocking about with incorrect silk screen! Took me about 2 days to get that working!

That screen should work with the built in driver, although it will probably be negative on the colours. If you try dmesg and see if the pi was able to execute you commands ok. I'm thinking you may need to drop the v from the driver name option
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

parizene
Posts: 13
Joined: Thu Aug 02, 2018 6:21 am

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by parizene » Fri Aug 03, 2018 1:22 am

moosepr wrote:
Fri Aug 03, 2018 1:13 am
Ah ok, there is a 1.5 inch screen knocking about with incorrect silk screen! Took me about 2 days to get that working!

That screen should work with the built in driver, although it will probably be negative on the colours. If you try dmesg and see if the pi was able to execute you commands ok. I'm thinking you may need to drop the v from the driver name option
There is no *.c file without v, so probably with v should be OK. Is it good, that there is no CS pin? 0 will be used by default. And what is the best way to test display in retropie, I'm connecting via ssh, con2fbmap will be enough without fb0 to fb1 copy?

User avatar
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

Post by moosepr » Tue Aug 07, 2018 3:18 am

Ah ok, maybe you need the v then. Have you checked dmesg to see if it's actually loading the driver first?
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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest