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
[Guide] ili9341 SPI TFT Screen on Retropie
Re: [Guide] ili9341 SPI TFT Screen on Retropie
- 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
You got any pictures of the wiring?
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
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
Re: [Guide] ili9341 SPI TFT Screen on Retropie
Wiring
240x240 (not working), does not have CS pin
160x128 (working)

SpoilerShow

Code: Select all
sudo modprobe fbtft_device name=fb_st7789v gpios=reset:25,dc:24,led:23 speed=40000000 custom=1 fps=60
SpoilerShow

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
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
SpoilerShow

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
Last edited by parizene on Thu Aug 30, 2018 2:40 am, edited 1 time in total.
- 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
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
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
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
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
Re: [Guide] ili9341 SPI TFT Screen on Retropie
but I only have GND VCC SCL SDA RES DC BLK pins on display, what does it mean:moosepr wrote: ↑Sat Sep 01, 2018 4:27 amIf 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
n/a SCK
CE0(10,Pin24) CS
SCLK(14,Pin23) A0
25(Pin37) RESET
also tested wiring with a tester, seems to be ok
SpoilerShow

Last edited by parizene on Sun Sep 02, 2018 3:13 am, edited 1 time in total.
- 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
Ah ok, not the screen I thought it was.
Can you probe the ribbon and the pins to prove the PCB is correct?
Can you probe the ribbon and the pins to prove the PCB is correct?
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
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
Re: [Guide] ili9341 SPI TFT Screen on Retropie
yeah, already did this, seems to be ok. maybe smth wrong with a driver I'm using
but I saw this image on aliexpress
SpoilerShow

- 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
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
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
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
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
Who is online
Users browsing this forum: No registered users and 1 guest