Page 22 of 27

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Thu May 31, 2018 12:27 pm
by NimbleJoshua
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?

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Fri Jul 20, 2018 2:11 am
by halasu
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?

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Fri Jul 20, 2018 2:13 am
by halasu
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

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Fri Jul 20, 2018 5:42 am
by VeteranGamer
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



.

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Thu Aug 02, 2018 6:28 am
by parizene
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

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Thu Aug 02, 2018 9:40 am
by moosepr
Is this the 1.5 inch version from AliExpress?

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Thu Aug 02, 2018 3:42 pm
by parizene
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

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Fri Aug 03, 2018 1:13 am
by moosepr
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

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Fri Aug 03, 2018 1:22 am
by parizene
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?

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Posted: Tue Aug 07, 2018 3:18 am
by moosepr
Ah ok, maybe you need the v then. Have you checked dmesg to see if it's actually loading the driver first?