Closed troyane closed 2 years ago
Sorry I don't have any solution for you :(
But on a side note, would you be open to share your modprobe for ili934 on RPi Zero W? I have a TFT_320QVT_9341 from icstation and I can't get it going.
I noticed there's no sample modprobe for ili934 on the flexfb wiki page, so maybe if you have one we can convince them to add it. Thx and good luck to you =)
@VonHirsch you may refer to this article -- https://pi0cket.com/guides/ili9341-raspberry-pi-guide/ Just re-check your wirings.
@troyane TYSM! I'll give that a shot.
@troyane actually my screen doesn't have the pins "BL, SCK, MISO or MOSI." I've been trying to set it up in 8-bit parallel using GPIO only (no SPI) as described here. I'm trying to use the flexpfb platform driver with fbtft (like here) but I can't get the display to do anything but turn white. Anyway, thanks, I know this isn't a help forum =)
Oh I just saw issue #491 so I'll check that out
@VonHirsch ili9341 should have such pins. Labels on your display module may vary, e.g. SCK = SCLK = CLK. Here is an article on how to connect ili9341 to NanoPi Neo Air -- http://trola.org/blog/ili9341-on-clean-nanopi-neo-air/
Thanks for the article and encouragement @troyane Here are the pinouts on the board. I'm starting to realize why this display & IC were so cheap, parallel mode is a royal pain compared to SPI.
The board also has an SD card slot on it, and I believe the SD_ prefixed pins are for working with that module. lmk what you think. thanks
Just in case someone google's this, I got my display (TFT_320QVT_9341 from icstation) working. I finally realized that the MCU interface mode is set to a 16-bit wide bus, which is great for speed but a pain to wire up and obviously takes up a ton of GPIO's.
After that was sorted it started up with fairly stock fbtft settings / commands & init from the wiki. Here's what worked for me in this order: (modify gpios per your wiring setup, the only pin on the display which doesn't obviously match up is RS == dc)
sudo modprobe flexfb width=320 height=240 buswidth=16 init=-1,0x28,-2,20,-1,0xCF,0x00,0x83,0x30,-1,0xED,0x64,0x03,0x12,0x81,-1,0xE8,0x85,0x01,0x79,-1,0xCB,0x39,0x2c,0x00,0x34,0x02,-1,0xF7,0x20,-1,0xEA,0x00,0x00,-1,0xC0,0x26,-1,0xC1,0x11,-1,0xC5,0x35,0x3E,-1,0xC7,0xBE,-1,0xB1,0x00,0x1B,-1,0xB6,0x0a,0x82,0x27,0x00,-1,0xB7,0x07,-1,0x3A,0x55,-1,0x36,0x38,-1,0x11,-2,120,-1,0x29,-2,20,-3
sudo modprobe fbtft_device name=flexpfb gpios=reset:25,cs:5,dc:3,wr:2,led:18,db00:6,db01:12,db02:13,db03:19,db04:16,db05:26,db06:20,db07:21,db08:14,db09:15,db10:4,db11:23,db12:24,db13:27,db14:8,db15:22
sudo fbi -d /dev/fb1 -T 1 -noverbose -a your-test-jpg-file-name.jpg
Notice buswidth 16, and platform device flexpfb which indicates parallel mode as opposed to SPI.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
LCDs (ili9341, st7735s) I'm able to test behave exactly the same way -- every time lighted up white screen, but nothing more.
I have NanoPi Neo Air with Armbian (5.59 Nanopiair Debian stretch 4.14.65) on it. All packages in system already updated to latest available versions. Problem remains as on stable kernel, same on nightly build.
Currently I have:
I'm successfully loading SPI:
Here is the way I'm trying to load
fbtft_device
(e.g. Waveshare 1.44 which is st7735s):Wiring was already rechecked for few times already.
As a result I can see next lines in
dmesg
:And there is
/dev/fb0
available in system. But unfortunately next actions can't draw anything on screen (screen remains lighted up white without any changes):The only way to get at least some error is to run (from user of from sudo):
Previously both screens were wired to RPi Zero W using almost the same scenario, and all work great. I've got such problems only with NanoPi and Armbian.
I'm able to provide any additional information. I'll appreciate any help. Where should I dig to? Thanks.