Page 23 of 27
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Posted: Tue Aug 07, 2018 6:14 am
by parizene
moosepr wrote: ↑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?
yeah, driver is loading according to dmesg, but actually only black screen with backlight on display all the time, fb0 & fb1 are listed in /dev. con2fbmap does nothing. probably smth is missing
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Posted: Wed Aug 08, 2018 4:35 pm
by moosepr
You got any pictures of the wiring?
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Posted: Thu Aug 30, 2018 1:53 am
by parizene
Wiring
240x240 (not working), does not have CS pin
Code: Select all
sudo modprobe fbtft_device name=fb_st7789v gpios=reset:25,dc:24,led:23 speed=40000000 custom=1 fps=60
Code: Select all
[ 90.415414] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[ 90.420870] fbtft_device: module is from the staging directory, the quality is unknown, you have been warned.
[ 90.422142] spidev spi0.0: spidev spi0.0 125000kHz 8 bits mode=0x00
[ 90.422160] spidev spi0.1: spidev spi0.1 125000kHz 8 bits mode=0x00
[ 90.422210] bcm2708_fb soc:fb: soc:fb id=-1 pdata? no
[ 90.422251] spidev spi0.0: Deleting spi0.0
[ 90.435455] fbtft_device: GPIOS used by 'fb_st7789v':
[ 90.435470] fbtft_device: 'reset' = GPIO25
[ 90.435475] fbtft_device: 'dc' = GPIO24
[ 90.435479] fbtft_device: 'led' = GPIO23
[ 90.435495] spidev spi0.1: spidev spi0.1 125000kHz 8 bits mode=0x00
[ 90.435505] spi spi0.0: fb_st7789v spi0.0 48000kHz 8 bits mode=0x00
[ 90.568944] fb_st7789v: module is from the staging directory, the quality is unknown, you have been warned.
[ 90.747100] graphics fb1: fb_st7789v frame buffer, 240x240, 112 KiB video memory, 4 KiB buffer memory, fps=100, spi0.0 at 48 MHz
160x128 (working)
Code: Select all
sudo modprobe fbtft_device name=fb_st7735r gpios=reset:25,dc:24,led:23 speed=40000000 rotate=270 custom=1 fps=60
Code: Select all
[ 534.319215] fbtft_device: module is from the staging directory, the quality is unknown, you have been warned.
[ 534.326000] spidev spi0.1: spidev spi0.1 125000kHz 8 bits mode=0x00
[ 534.326129] bcm2708_fb soc:fb: soc:fb id=-1 pdata? no
[ 534.329989] fbtft_device: GPIOS used by 'fb_st7735r':
[ 534.330015] fbtft_device: 'reset' = GPIO25
[ 534.330020] fbtft_device: 'dc' = GPIO24
[ 534.330053] fbtft_device: 'led' = GPIO23
[ 534.330075] spidev spi0.1: spidev spi0.1 125000kHz 8 bits mode=0x00
[ 534.330086] spi spi0.0: fb_st7735r spi0.0 40000kHz 8 bits mode=0x00
[ 534.390287] fb_st7735r: module is from the staging directory, the quality is unknown, you have been warned.
[ 535.321085] graphics fb1: fb_st7735r frame buffer, 160x128, 40 KiB video memory, 4 KiB buffer memory, fps=100, spi0.0 at 40 MHz
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Posted: Thu Aug 30, 2018 2:28 am
by KonnorJ
You're images aren't working parizene
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Posted: Thu Aug 30, 2018 2:41 am
by parizene
KonnorJ wrote: ↑Thu Aug 30, 2018 2:28 am
You're images aren't working parizene
thanks, updated
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Posted: Sat Sep 01, 2018 4:27 am
by moosepr
If it's the screen I think it is, the silkscreen is wrong! Try
RPI Display
3,3V(Pin1) VCC
Ground(Pin6) GND
MOSI(12,Pin19) SDA
n/a SCK
CE0(10,Pin24) CS
SCLK(14,Pin23) A0
25(Pin37) RESET
Then your modprobe line should get you something. The built in driver has the colours flipped, but we can fix that once you get an image
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Posted: Sat Sep 01, 2018 11:38 am
by parizene
moosepr wrote: ↑Sat Sep 01, 2018 4:27 am
If it's the screen I think it is, the silkscreen is wrong! Try
RPI Display
3,3V(Pin1) VCC
Ground(Pin6) GND
MOSI(12,Pin19) SDA
n/a SCK
CE0(10,Pin24) CS
SCLK(14,Pin23) A0
25(Pin37) RESET
Then your modprobe line should get you something. The built in driver has the colours flipped, but we can fix that once you get an image
but I only have GND VCC SCL SDA RES DC BLK pins on display, what does it mean:
n/a SCK
CE0(10,Pin24) CS
SCLK(14,Pin23) A0
25(Pin37) RESET
also tested wiring with a tester, seems to be ok
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Posted: Sat Sep 01, 2018 5:10 pm
by moosepr
Ah ok, not the screen I thought it was.
Can you probe the ribbon and the pins to prove the PCB is correct?
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Posted: Sun Sep 02, 2018 3:13 am
by parizene
moosepr wrote: ↑Sat Sep 01, 2018 5:10 pm
Ah ok, not the screen I thought it was.
Can you probe the ribbon and the pins to prove the PCB is correct?
yeah, already did this, seems to be ok. maybe smth wrong with a driver I'm using
but I saw this image on aliexpress
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Posted: Sun Sep 02, 2018 7:40 am
by moosepr
Actually, if you don't have a DC pin, you might need to force it to use 9 bit data
Try this
sudo modprobe fbtft_device name=flexfb speed=40000000 fps=60 gpios=reset:25
sudo modprobe flexfb buswidth=9 setaddrwin=0 width=240 height=240 init=-1,0x11,-2,120,-1,0x36,0x00,-1,0x3A,0x05,-1,0xB2,0x0C,0x0C,0x00,0x33,0x33,-1,0xB7,0x35,-1,0xBB,0x1A,-1,0xC0,0x2C,-1,0xC2,0x01,-1,0xC3,0x0B,-1,0xC4,0x20,-1,0xC6,0x0F,-1,0xD0,0xA4,0xA1,-1,0x21,-1,0xE0,0x00,0x19,0x1E,0x0A,0x09,0x15,0x3D,0x44,0x51,0x12,0x03,0x00,0x3F,0x3F,-1,0xE1,0x00,0x18,0x1E,0x0A,0x09,0x25,0x3F,0x43,0x52,0x33,0x03,0x00,0x3F,0x3F,-1,0x29,-1,0x37,0x01,0x18,-3