Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:47 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : PicoMite Driver for lcd panel using ST7789 controller

Author Message
morgs67
Regular Member

Joined: 10/07/2019
Location: Australia
Posts: 75
Posted: 01:34pm 03 Apr 2024
Copy link to clipboard 
Print this post

Purchased a LCD display marked 2.4" TFT SPI 240X320 v1.3. It is almost identical to the red board shown in the picomite manual headed "Example SPI LCD Panel Configuration". However, it does not use a ILI9341 controller. With the ILI9341 driver the display is in portrait mode with part of the screen unused.
Tried several other drivers with no luck. Then found the ST7789_320 driver almost works.
The orientation needs to be set to Reverse Landscape. But all the colours are inverted (red RGB(255,0,0)is blue RGB(0,255,255), green is purple and blue is yellow). The screen is white and the text black. BLIT and gui calibration both work OK.

@matherp ,Peter is there any chance of adding an option to the ST7789_320 driver to cater for this version?

Tony
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9112
Posted: 02:52pm 03 Apr 2024
Copy link to clipboard 
Print this post

OPTION LCDPANEL anyspidisplay orientation, dcpin, resetpin, cspin [,backlightpin] [,INVERT]


set INVERT to invert the colours. Works on ILI9488 but may work on ST7789. Latest RC only
Edited 2024-04-04 01:39 by matherp
 
morgs67
Regular Member

Joined: 10/07/2019
Location: Australia
Posts: 75
Posted: 11:13pm 03 Apr 2024
Copy link to clipboard 
Print this post

@matherp

Using - PicoMite MMBasic Version 5.09.00RC3

Tested the following displays

INVERT
works on ILI9488

Does not work on-
ILI9341 or
ST7789_320

Footnote added 2024-04-04 09:38 by morgs67
link to item-
https://www.aliexpress.com/item/32960241206.html
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9112
Posted: 07:32am 04 Apr 2024
Copy link to clipboard 
Print this post

Try this


PicoMite.zip
 
morgs67
Regular Member

Joined: 10/07/2019
Location: Australia
Posts: 75
Posted: 10:29am 04 Apr 2024
Copy link to clipboard 
Print this post

@matherp Peter,

Tried your test invert, and success!
This works on-
ILI9488
ILI9341 and
ST7789_320
confirmed on each by trying normal and invert.

Thanks
Tony
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024