8-bit|16-bit parallell ILI9341

External hardware connected to the STM32 board
WacKEDmaN
Posts: 9
Joined: Mon Dec 18, 2017 1:33 pm

Re: 8-bit|16-bit parallell ILI9341

Post by WacKEDmaN » Mon Dec 18, 2017 10:45 pm

ok thats good to know..
ive just downloaded your latest version of the lib
changed #define TFT_RST PB10 to PA4 to match my wiring..
still get white screen only :(

stevestrong
Posts: 2061
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: 8-bit|16-bit parallell ILI9341

Post by stevestrong » Mon Dec 18, 2017 11:25 pm

Which id do get in the serial monitor?

WacKEDmaN
Posts: 9
Joined: Mon Dec 18, 2017 1:33 pm

Re: 8-bit|16-bit parallell ILI9341

Post by WacKEDmaN » Mon Dec 18, 2017 11:51 pm

defaulted the library and my wiring back to original pins..(rst on PB10)
graphicstest serial output: (but still with white screen only)

Code: Select all

TFT size is 240x320
Found ILI9341 LCD driver
TFT begin done.
rotation: 0, runtime: 22047
rotation: 1, runtime: 22046
rotation: 2, runtime: 22046
rotation: 3, runtime: 22046

Benchmark                Time (microseconds)
Screen fill              65196
Text                     22046
Lines                    177382
Horiz/Vert Lines         7988
Rectangles (outline)     6260
Rectangles (filled)      151869
Circles (filled)         97002
Circles (outline)        76594
Triangles (outline)      56363
Triangles (filled)       95581
Rounded rects (outline)  28134
Rounded rects (filled)   192794
Done!

LCD_ID output remains the same (as my post above)
tft.readID() returns 9341

stevestrong
Posts: 2061
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: 8-bit|16-bit parallell ILI9341

Post by stevestrong » Tue Dec 19, 2017 8:24 am

The issue is that I don't have any 8 bit parallel ILI9341 LCD, my one is ili9328 and it works.
But i have an 9341 compatible 16 bit LCD, I will check whether the register init sequence is ok.

WacKEDmaN
Posts: 9
Joined: Mon Dec 18, 2017 1:33 pm

Re: 8-bit|16-bit parallell ILI9341

Post by WacKEDmaN » Tue Dec 19, 2017 10:17 am

understand Steve...i appreciate your efforts!

edit: finally got around to removing and jumpering the R4 resistor thinking it would help...but it hasnt made any difference
im just gonna go buy a SPI TFT LCD..

stevestrong
Posts: 2061
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: 8-bit|16-bit parallell ILI9341

Post by stevestrong » Sat Dec 23, 2017 3:45 pm

I just checked my 16 bit parallel lib on the blue pill with an ILI9341 compatible 320x480 TFT LCD, and it works as expected.

Code: Select all

Benchmark                Time (microseconds)
Screen fill              54843
Text                     23228
Lines                    423008
Horiz/Vert Lines         6840
Rectangles (outline)     5712
Rectangles (filled)      134003
Circles (filled)         187443
Circles (outline)        177951
Triangles (outline)      118043
Triangles (filled)       122780
Rounded rects (outline)  53757
Rounded rects (filled)   192710
It is not the 8 bit lib, but I checked the ILI9341 part of the 16 bit lib and is is almost identical with that of the 8 bit lib, expect the bit access functions, which I assume they should work for 9341 as they work for 9328.

So the last hint I can suggest you it is to check the wires again, especially be sure that you connect and control the LCD reset pin.
Btw, do not use PA0 as RST pin, but any other.

For an initial test, you should maybe use #if 1 in both lines 85 and 125 of the header file.

When adapting the pinning in the header file of my lib be sure that you change the bit mask definitions and the TFT_DATA_SHIFT definition as well.

Or you can maybe post here your pinning and I will adapt the header file for you.

WacKEDmaN
Posts: 9
Joined: Mon Dec 18, 2017 1:33 pm

Re: 8-bit|16-bit parallell ILI9341

Post by WacKEDmaN » Sat Dec 30, 2017 2:38 am

i tried your suggestions but still cant get anything on the screen..
ive been using the default pinouts, just to get it working, triple checked the wiring, and even continuity tested each pin, but no luck getting anything onscreen...forcing #if 1 does run slower (the serial output) but still no onscreen output :(

its a strange LCD, the only lib i can make it work with on arduino is the MCUFRIEND_kbv library, the adafruit libs dont work as expected..

im just gonna buy a SPI LCD for the bluepill and keep this shield for the uno (its slower on mega than uno!)

edit: got it working on the bluepill with the latest MCUFRIEND lib :)

Post Reply