Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:07 17 Sep 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 : New 4 inch LCD

     Page 8 of 12    
Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1834
Posted: 10:02pm 29 Mar 2024
Copy link to clipboard 
Print this post

Using the driver that came with the V5.0505 download.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1993
Posted: 10:11pm 29 Mar 2024
Copy link to clipboard 
Print this post

Zipped it and here it is.

ILI9488 Display Driver.zip
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1834
Posted: 10:59pm 29 Mar 2024
Copy link to clipboard 
Print this post

where I originally came undone was in this bit.
  Quote  For example, if you have plugged the display into a Micromite LCD Backpack you would configure the driver
as: ILI9488 2, 23, 6, 1

I read the one as being lower case L. In the Manual to my eyes it looks like l not 1
But my calibration woes continue, Ill just have to use it with PicoMites.
Edited 2024-03-30 09:00 by palcal
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1993
Posted: 01:09am 30 Mar 2024
Copy link to clipboard 
Print this post

Have you tested the continuity from the top of the MX170 pins to the top of the LCD panel pins?

Especially all the touch pins, including T_DO to MISO (SPI IN, pin 14) and TCK to SPI CLOCK, pin 25.
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1834
Posted: 01:13am 30 Mar 2024
Copy link to clipboard 
Print this post

Both the MM2 boards work with an ILI9341 but anything with an ILI9488 driver won't calibrate.
All three displays OK on a PicoMite.

Edit...I'll download the driver again and see what happens.
Edit... Reloaded the driver no luck.
I searched this problem on TBS because I know it has happened to others. Found threads relating to it but no answer.
Edited 2024-03-30 12:14 by palcal
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1993
Posted: 02:52am 30 Mar 2024
Copy link to clipboard 
Print this post

It's a real puzzle. Set up another 2 MX170 chips and they too worked first time.
The only thing I can think of now (grasping at straws) is perhaps the board layout is affecting SPI timing and the ILI9488 is fussier than the ILI9341. My MM2 is on strip board.

Could you set one up on a breadboard to see if that makes a difference?
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1834
Posted: 03:06am 30 Mar 2024
Copy link to clipboard 
Print this post

I'll try isolating the display from the board.
I isolated the display from the board but no go. If you search for "TOUCH HARDWARE FAILURE" on TBS you will see a lot of posts about the problem with various results. I tried them all even connected MISO with a series 680 ohm resistor that worked for someone.
Looks like I use the displays with PicoMite only which is not a big deal, it just bugs me I can't find the answer.
Edited 2024-03-30 13:25 by palcal
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1993
Posted: 05:10am 30 Mar 2024
Copy link to clipboard 
Print this post

The 680Ω and diode/10kΩ tricks are only to allow Blit, Image Save etc to share MISO with touch and SD cards. The MM2 doesn't support them or GUI features so LCD_DO is not connected to MISO (or anything else) at all. If you don't have the SD pins connected and SD driver installed Touch will have MISO all to itself.

For MM+ and all the others the diode/10kΩ mod works best. If they are added to the top of the LCD panel pins it becomes physically interchangeable with a ILI9341 for those devices. Peter posted a good photo of that.
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1834
Posted: 06:29am 30 Mar 2024
Copy link to clipboard 
Print this post

I knew that but someone said it worked for them, I don't know what the circumstances were, I was grasping at straws, willing to try anything. I've now given up.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1846
Posted: 05:20pm 03 Apr 2024
Copy link to clipboard 
Print this post

Hi, the ips ili9488 arrived and it's bigger than the non ips so the 4 pins at the top you got to solder and find your own pins, overlap the board so just bottom row connected, power up autorun bubble universe and
first noticed the cls ,normally don't
second colours "inverted?" ie black background is white
rc3
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6355
Posted: 05:33pm 03 Apr 2024
Copy link to clipboard 
Print this post

The ILI9341 never comes with pins for the SD card. Sounds like that might be the same.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8830
Posted: 05:34pm 03 Apr 2024
Copy link to clipboard 
Print this post

  Quote  first noticed the cls ,normally don't
second colours "inverted?" ie black background is white


Sometimes I don't know why I bother

  Quote  Works nicely, very bright and clear (and cheap), but the colours are inverted. I'll put a switch in the setup command to cater for it.


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

if the new optional parameter "invert" is used the colours are inverted - supports the IPS ILI9488 display
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1846
Posted: 06:18pm 03 Apr 2024
Copy link to clipboard 
Print this post

  matherp said  
  Quote  first noticed the cls ,normally don't
second colours "inverted?" ie black background is white


Sometimes I don't know why I bother

  Quote  Works nicely, very bright and clear (and cheap), but the colours are inverted. I'll put a switch in the setup command to cater for it.


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

if the new optional parameter "invert" is used the colours are inverted - supports the IPS ILI9488 display

I don't know why you bother either. maybe you're just nice.  
it's all very dynamic keeping up to latest and easy to miss the relevance of some info imho. like why non ils 9488 is not inverted but ils 9488 is when I never set invert?
anyway it'll need a new board and using vero it'll be two boards side by side cos they don't do big vero and it's expensive.

just remembered a post it's ILS ili9488. I'm testing now and invert setting
Edited 2024-04-04 04:24 by stanleyella
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1846
Posted: 10:30pm 03 Apr 2024
Copy link to clipboard 
Print this post

soldered another header for the size of ils 9488 and tight fit but works. brighter than old ili9488 and wider view angle.
had to option reset to get OPTION LCDPANEL ILI9488, LANDSCAPE,GP15,GP14,GP13,,INVERT and retype other options but works

 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 1846
Posted: 12:46am 04 Apr 2024
Copy link to clipboard 
Print this post

the touch and sd card work. poor photo but pixels seem brighter than old 9488.
a side by side comparison maybe one day but £13 it'll be my non vga device.
glad I squeezed it in to existing 9488 strip board with another header, it's about 1CM longer

 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1834
Posted: 02:04am 06 Apr 2024
Copy link to clipboard 
Print this post

My IPS Panel arrived today, all worked first go, nice and bright.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1834
Posted: 06:06am 06 Apr 2024
Copy link to clipboard 
Print this post

@ Matherp
I would like to use the IPS panel with a MM2, Peter is there any chance you could update the driver to include the INVERT function.
Works great on the PicoMite
.
Edited 2024-04-06 17:03 by palcal
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8830
Posted: 07:52am 06 Apr 2024
Copy link to clipboard 
Print this post

  Quote  Peter is there any chance you could update the driver to include the INVERT function.


Completely untested

CSub ili9488
   000002A0
   'spi_write_data
   27BDFFE0 AFBF001C AFB10018 AFB00014 309100FF 3C109D00 8E030090 8E02001C
   8064002C 0040F809 24050006 8E030090 8E02001C 8064002D 0040F809 24050005
   3C02BF80 AC515820 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C425820
   3C029D00 8C430090 8C42001C 8064002D 0040F809 24050006 8FBF001C 8FB10018
   8FB00014 03E00008 27BD0020
   'spi_write_command
   27BDFFE0 AFBF001C AFB10018 AFB00014 309100FF 3C109D00 8E030090 8E02001C
   8064002C 0040F809 24050005 8E030090 8E02001C 8064002D 0040F809 24050005
   3C02BF80 AC515820 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C425820
   3C029D00 8C430090 8C42001C 8064002D 0040F809 24050006 8FBF001C 8FB10018
   8FB00014 03E00008 27BD0020
   'spi_write_cd
   27BDFFD8 AFBF0024 AFB10020 AFB0001C AFA60030 AFA70034 00A08821 27A20030
   AFA20010 308400FF 0411FFD2 00000000 1A20000A 00008021 8FA20010 24430004
   AFA30010 90440000 0411FFA7 00000000 26100001 1611FFF9 8FA20010 8FBF0024
   8FB10020 8FB0001C 03E00008 27BD0028
   'DefineRegion
   27BDFFD8 AFBF0024 AFB40020 AFB3001C AFB20018 AFB10014 AFB00010 00808821
   00A09821 00C09021 00E0A021 3C109D00 8E030090 8E02001C 8064002C 0040F809
   24050005 8E030090 8E02001C 8064002D 0040F809 24050005 2403002A 3C02BF80
   AC435820 3C03BF80 8C625810 30420080 1040FFFD 3C10BF80 8E025820 3C029D00
   8C430090 8C42001C 8064002C 0040F809 24050006 00111203 AE025820 3C03BF80
   8C625810 30420080 1040FFFD 3C02BF80 8C435820 AC515820 3C03BF80 8C625810
   30420080 1040FFFD 3C02BF80 8C435820 00121A03 AC435820 3C03BF80 8C625810
   30420080 1040FFFD 3C02BF80 8C435820 AC525820 3C03BF80 8C625810 30420080
   1040FFFD 3C10BF80 8E025820 3C029D00 8C430090 8C42001C 8064002C 0040F809
   24050005 2402002B AE025820 3C03BF80 8C625810 30420080 1040FFFD 3C10BF80
   8E025820 3C029D00 8C430090 8C42001C 8064002C 0040F809 24050006 00131203
   AE025820 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C435820 AC535820
   3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C435820 00141A03 AC435820
   3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C435820 AC545820 3C03BF80
   8C625810 30420080 1040FFFD 3C02BF80 8C425820 3C029D00 8C430090 8C42001C
   8064002C 0040F809 24050005 8FA20038 1040000C 2403002E 2403002C 3C02BF80
   AC435820 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C425820 1000000A
   3C029D00 3C02BF80 AC435820 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80
   8C425820 3C029D00 8C430090 8C42001C 8064002D 0040F809 24050006 8FBF0024
   8FB40020 8FB3001C 8FB20018 8FB10014 8FB00010 03E00008 27BD0028
   'DrawBitmapSPI
   27BDFFA8 AFBF0054 AFBE0050 AFB7004C AFB60048 AFB50044 AFB40040 AFB3003C
   AFB20038 AFB10034 AFB00030 0080F021 AFA5005C 00C0B021 AFA70064 8FB2006C
   8FB50070 3C029D00 8C420094 8C420000 0082102B 104000C4 8FB70074 3C029D00
   8C420098 8C420000 00A2102B 104000BE 8FA20068 70461802 00643021 04C000BA
   70471002 00451821 046000B7 8FA3005C 28A50000 0005180B 00602821 3C03BF80
   8C645830 AFA40018 8C645800 AFA4001C 8C645840 AFA40020 AC605800 3C040001
   34848260 AC645800 AC605830 24040C00 AC645840 7E503C00 7E513A00 325200FF
   7EB33C00 7EB43A00 32B500FF 24A7FFFF 24030001 AFA30010 03C02021 24C6FFFF
   00E23821 0411FF1F 00000000 3C029D00 8C430090 8C42001C 8064002C 0040F809
   24050006 3C049D00 8C830090 8C82001C 8064002D 0040F809 24050005 00161023
   AFA20024 8FA20064 70567802 25EFFFFF AFB60028 8FAE005C 00005821 0000C821
   8FAD0068 3C069D00 240C0001 10000059 3C02BF80 25CE0001 25C3FFFF 0460004E
   00000000 8CC30098 8C630000 006E182B 14600076 8FBF0054 1EC00037 01E04821
   10000045 00000000 24630001 2464FFFF 0480002A 00000000 8CC40094 8C840000
   0083202B 14800025 00000000 91040000 00872024 10800012 00000000 8C445810
   30840002 1480FFFD 00000000 AC505820 8C445810 30840002 1480FFFD 00000000
   AC515820 8C445810 30840002 1480FFFD 00000000 AC525820 10000010 00000000
   8C445810 30840002 1480FFFD 00000000 AC535820 8C445810 30840002 1480FFFD
   00000000 AC545820 8C445810 30840002 1480FFFD 00000000 AC555820 5465FFD3
   24630001 254A0001 15560005 2529FFFF 10000011 00000000 03C01821 00005021
   014B2021 24850007 28880000 00A8200B 000440C3 02E84021 000927C3 00042742
   01243821 30E70007 00E43823 00EC3804 1000FFBD 006D2821 55D8FFAF 25CE0001
   27390001 8FA30024 01E37821 8FA40028 01645821 8FA40064 0324182A 10600005
   8FA30068 1C60FFA3 01C3C021 1000FFF5 27390001 3C02BF80 8C435810 30630080
   1060FFFD 00000000 10000002 3C02BF80 8C435820 8C435810 30630020 1060FFFC
   3C10BF80 AE005800 24030040 3C02BF80 AC435814 3C029D00 8C430090 8C42001C
   8064002D 0040F809 24050006 AE005800 8FA40018 AE045830 8FA20020 AE025840
   8FA3001C AE035800 8FBF0054 8FBE0050 8FB7004C 8FB60048 8FB50044 8FB40040
   8FB3003C 8FB20038 8FB10034 8FB00030 03E00008 27BD0058
   'DrawRectangleSPI
   27BDFFB0 AFBF004C AFBE0048 AFB70044 AFB60040 AFB5003C AFB40038 AFB30034
   AFB20030 AFB1002C AFB00028 8FB00060 3C02BF80 8C435830 AFA30018 8C435800
   AFA3001C 8C435840 AFA30020 AC405800 3C030001 34638260 AC435800 AC405830
   24030C00 AC435840 0086102A 14400005 00A7102A 00801021 00C02021 00403021
   00A7102A 14400004 28940000 00A01021 00E02821 00403821 0014200B 0080A021
   3C029D00 8C420094 8C420000 0082202B 2443FFFF 0064A00A 28D50000 0015300B
   00C0A821 00C2182B 2442FFFF 0043A80A 28B60000 0016280B 00A0B021 3C029D00
   8C420098 8C420000 00A2202B 2443FFFF 0064B00A 28F70000 0017380B 00E0B821
   00E2182B 2442FFFF 0043B80A 7E123C00 7E113A00 321000FF 241E0001 AFBE0010
   02802021 02C02821 02A03021 02E03821 0411FE2E 00000000 3C139D00 8E630090
   8E62001C 8064002C 0040F809 24050006 8E630090 8E62001C 8064002D 0040F809
   24050005 03D4A023 0295A821 03D62023 00972021 70952002 10800013 2484FFFF
   3C02BF80 8C435810 30630002 1460FFFD 00000000 AC525820 8C435810 30630002
   1460FFFD 00000000 AC515820 8C435810 30630002 1460FFFD 00000000 AC505820
   1480FFF0 2484FFFF 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C425810
   30420020 14400006 3C02BF80 8C435820 8C435810 30630020 1060FFFC 00000000
   3C10BF80 AE005800 24030040 3C02BF80 AC435814 3C029D00 8C430090 8C42001C
   8064002D 0040F809 24050006 AE005800 8FA20018 AE025830 8FA30020 AE035840
   8FA2001C AE025800 8FBF004C 8FBE0048 8FB70044 8FB60040 8FB5003C 8FB40038
   8FB30034 8FB20030 8FB1002C 8FB00028 03E00008 27BD0050
   'getFPC
   27BDFFF8 AFBF0004 00852023 03E42021 ACC40000 8FBF0004 03E00008 27BD0008
   'pstring
   27BDFFE0 AFBF001C AFB00018 00808021 00002021 3C059D00 24A50A5C 27A60010
   0411FFEF 00000000 8FA40010 3C029D00 8C42002C 0040F809 02042021 8FBF001C
   8FB00018 03E00008 27BD0020
   'main
   27BDFFC8 AFBF0034 AFB40030 AFB3002C AFB20028 AFB10024 AFB00020 00808821
   00A08021 00C09021 00E09821 00002021 3C059D00 24A50AC4 27A60018 0411FFD5
   00000000 3C029D00 8C430090 8E040000 A064002E 8C430090 8E240000 A064002C
   8C430090 8E440000 A064002D 8C430090 92640000 24840002 A0640015 8C420090
   80430015 28640004 5480000A 24030014 3C059D00 2463FFFC A0430015 8CA20090
   80430015 28640004 5080FFFB 2463FFFC 24030014 A0430014 3C109D00 8E030090
   8E020010 8064002E 24050008 0040F809 00003021 8E030090 8E020010 8064002E
   24050065 0040F809 00003021 8E030090 8E02001C 8064002E 0040F809 24050006
   8E030090 8E020010 8064002C 24050008 0040F809 00003021 8E030090 8E020010
   8064002C 24050065 0040F809 00003021 8E030090 8E02001C 8064002C 0040F809
   24050006 8E030090 8E020010 8064002D 24050008 0040F809 00003021 8E030090
   8E020010 8064002D 24050065 0040F809 00003021 8E030090 8E02001C 8064002D
   0040F809 24050006 3C02BF81 8C44F220 7C84D800 3C020661 3442A053 1082000B
   24030050 3C02BF81 8C43F220 7C63D800 3C020660 3442A053 00621826 24020050
   2404000C 0083100B 00401821 3C029D00 8C420088 00621821 8C640000 24030064
   54830007 00008821 3C03BF80 8C715830 8C725800 8C745840 10000003 3C03BF81
   00009021 3C03BF81 8C65F220 7CA5D800 3C040661 3484A053 10A4000B 24030050
   3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00831826 24040050 2405000C
   00A3200B 00801821 00621021 8C430000 24020065 1062008E 3C029D00 8C420010
   3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 24040014 3C03BF81
   8C64F220 7C84D800 3C030660 3463A053 00832026 24030014 24050003 00A4180B
   00602021 24050008 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220
   7CA5D800 3C030661 3463A053 10A3000B 24040014 3C03BF81 8C64F220 7C84D800
   3C030660 3463A053 00832026 24030014 24050003 00A4180B 00602021 24050065
   0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661
   3463A053 10A3000B 24040029 3C03BF81 8C64F220 7C84D800 3C030660 3463A053
   00832026 24030029 2405000E 00A4180B 00602021 24050002 0040F809 00003021
   3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B
   24040029 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 24030029
   2405000E 00A4180B 00602021 24050065 0040F809 00003021 3C029D00 8C420010
   3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 2404000E 3C03BF81
   8C64F220 7C84D800 3C030660 3463A053 00832026 2403000E 24050019 00A4180B
   00602021 24050008 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220
   7CA5D800 3C030661 3463A053 10A3000B 2404000E 3C03BF81 8C64F220 7C84D800
   3C030660 3463A053 00832026 2403000E 24050019 00A4180B 00602021 24050065
   0040F809 00003021 3C02BF81 8C43FA84 24040001 7C831804 AC43FA84 3C02BF81
   8C43FB04 24040003 7C831804 AC43FB04 3C02BF80 34038060 AC435800 24030003
   AC435830 24030C00 AC435840 16200005 3C109D00 8C515830 8C525800 8C545840
   3C109D00 8E030090 8E02001C 8064002E 0040F809 24050006 8E020004 0040F809
   24042710 8E030090 8E02001C 8064002E 0040F809 24050005 8E020004 0040F809
   24042710 8E030090 8E02001C 8064002E 0040F809 24050006 240400E0 0411FC3B
   00000000 00002021 0411FC15 00000000 24040003 0411FC12 00000000 24040009
   0411FC0F 00000000 24040008 0411FC0C 00000000 24040016 0411FC09 00000000
   2404000A 0411FC06 00000000 2404003F 0411FC03 00000000 24040078 0411FC00
   00000000 2404004C 0411FBFD 00000000 24040009 0411FBFA 00000000 2404000A
   0411FBF7 00000000 24040008 0411FBF4 00000000 24040016 0411FBF1 00000000
   2404001A 0411FBEE 00000000 2404000F 0411FBEB 00000000 240400E1 0411FC0B
   00000000 00002021 0411FBE5 00000000 24040016 0411FBE2 00000000 24040019
   0411FBDF 00000000 24040003 0411FBDC 00000000 2404000F 0411FBD9 00000000
   24040005 0411FBD6 00000000 24040032 0411FBD3 00000000 24040045 0411FBD0
   00000000 24040046 0411FBCD 00000000 24040004 0411FBCA 00000000 2404000E
   0411FBC7 00000000 2404000D 0411FBC4 00000000 24040035 0411FBC1 00000000
   24040037 0411FBBE 00000000 2404000F 0411FBBB 00000000 240400C0 0411FBDB
   00000000 24040017 0411FBB5 00000000 24040015 0411FBB2 00000000 240400C1
   0411FBD2 00000000 24040041 0411FBAC 00000000 240400C5 0411FBCC 00000000
   00002021 0411FBA6 00000000 24040012 0411FBA3 00000000 24040080 0411FBA0
   00000000 24040036 0411FBC0 00000000 24040048 0411FB9A 00000000 2404003A
   0411FBBA 00000000 24040066 0411FB94 00000000 240400B0 0411FBB4 00000000
   00002021 0411FB8E 00000000 240400B1 0411FBAE 00000000 240400A0 0411FB88
   00000000 240400B4 0411FBA8 00000000 24040002 0411FB82 00000000 240400B6
   0411FBA2 00000000 24040002 0411FB7C 00000000 24040002 0411FB79 00000000
   2404003B 0411FB76 00000000 240400B7 0411FB96 00000000 240400C6 0411FB70
   00000000 240400F7 0411FB90 00000000 240400A9 0411FB6A 00000000 24040051
   0411FB67 00000000 2404002C 0411FB64 00000000 24040082 0411FB61 00000000
   24040011 0411FB81 00000000 8E020004 3C040001 0040F809 3484D4C0 24040021
   0411FB7A 00000000 24040029 0411FB77 00000000 8E020004 0040F809 240461A8
   8E020090 80500015 2610FFFF 24040036 0411FB6E 00000000 24020001 1202000D
   2A020002 10400005 24020002 12000014 24040028 10000030 00000000 12020024
   24020003 1602002C 24040088 10000016 00000000 24040048 0411FB39 00000000
   3C029D00 8C430094 24040140 AC640000 8C420098 240301E0 1000001F AC430000
   0411FB2F 00000000 3C029D00 8C430094 240401E0 AC640000 8C420098 24030140
   10000015 AC430000 0411FB25 00000000 3C029D00 8C430094 24040140 AC640000
   8C420098 240301E0 1000000B AC430000 240400E8 0411FB1A 00000000 3C029D00
   8C430094 240401E0 AC640000 8C420098 24030140 AC430000 8FA50018 3C029D00
   8C430048 3C049D00 2484079C 00852021 AC640000 8FA50018 8C43004C 3C049D00
   24840404 00852021 AC640000 8C430048 8C440094 8C860000 8C420098 8C470000
   AFA00010 8C620000 00002021 00002821 24C6FFFF 0040F809 24E7FFFF 3C02BF80
   AC515830 AC525800 AC545840 3C049D00 2484145C 0411FD7F 00000000 8FBF0034
   8FB40030 8FB3002C 8FB20028 8FB10024 8FB00020 03E00008 27BD0038
   '.rodata
   'startup
   39494C49 20383834 76697264 6C207265 6564616F 000A0D64
End CSub



 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1834
Posted: 08:51am 06 Apr 2024
Copy link to clipboard 
Print this post

I'll test, Thanks Peter.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8830
Posted: 08:57am 06 Apr 2024
Copy link to clipboard 
Print this post

Here is a better, fully tested, version compatible with all ILI9488.

Use an extra parameter to specify invert

ILI9488 DCpin, RESETpin, CSpin, orientation [,invert]

set invert to 1 for IPS displays
remember orientation is a number (1 = landscape, 2 = portrait, 3 = reverse landscape, 4 = reverse portrait)

CSub ili9488
   000002A0
   'spi_write_data
   27BDFFE0 AFBF001C AFB10018 AFB00014 309100FF 3C109D00 8E030090 8E02001C
   8064002C 0040F809 24050006 8E030090 8E02001C 8064002D 0040F809 24050005
   3C02BF80 AC515820 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C425820
   3C029D00 8C430090 8C42001C 8064002D 0040F809 24050006 8FBF001C 8FB10018
   8FB00014 03E00008 27BD0020
   'spi_write_command
   27BDFFE0 AFBF001C AFB10018 AFB00014 309100FF 3C109D00 8E030090 8E02001C
   8064002C 0040F809 24050005 8E030090 8E02001C 8064002D 0040F809 24050005
   3C02BF80 AC515820 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C425820
   3C029D00 8C430090 8C42001C 8064002D 0040F809 24050006 8FBF001C 8FB10018
   8FB00014 03E00008 27BD0020
   'spi_write_cd
   27BDFFD8 AFBF0024 AFB10020 AFB0001C AFA60030 AFA70034 00A08821 27A20030
   AFA20010 308400FF 0411FFD2 00000000 1A20000A 00008021 8FA20010 24430004
   AFA30010 90440000 0411FFA7 00000000 26100001 1611FFF9 8FA20010 8FBF0024
   8FB10020 8FB0001C 03E00008 27BD0028
   'DefineRegion
   27BDFFD8 AFBF0024 AFB40020 AFB3001C AFB20018 AFB10014 AFB00010 00808821
   00A09821 00C09021 00E0A021 3C109D00 8E030090 8E02001C 8064002C 0040F809
   24050005 8E030090 8E02001C 8064002D 0040F809 24050005 2403002A 3C02BF80
   AC435820 3C03BF80 8C625810 30420080 1040FFFD 3C10BF80 8E025820 3C029D00
   8C430090 8C42001C 8064002C 0040F809 24050006 00111203 AE025820 3C03BF80
   8C625810 30420080 1040FFFD 3C02BF80 8C435820 AC515820 3C03BF80 8C625810
   30420080 1040FFFD 3C02BF80 8C435820 00121A03 AC435820 3C03BF80 8C625810
   30420080 1040FFFD 3C02BF80 8C435820 AC525820 3C03BF80 8C625810 30420080
   1040FFFD 3C10BF80 8E025820 3C029D00 8C430090 8C42001C 8064002C 0040F809
   24050005 2402002B AE025820 3C03BF80 8C625810 30420080 1040FFFD 3C10BF80
   8E025820 3C029D00 8C430090 8C42001C 8064002C 0040F809 24050006 00131203
   AE025820 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C435820 AC535820
   3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C435820 00141A03 AC435820
   3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C435820 AC545820 3C03BF80
   8C625810 30420080 1040FFFD 3C02BF80 8C425820 3C029D00 8C430090 8C42001C
   8064002C 0040F809 24050005 8FA20038 1040000C 2403002E 2403002C 3C02BF80
   AC435820 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C425820 1000000A
   3C029D00 3C02BF80 AC435820 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80
   8C425820 3C029D00 8C430090 8C42001C 8064002D 0040F809 24050006 8FBF0024
   8FB40020 8FB3001C 8FB20018 8FB10014 8FB00010 03E00008 27BD0028
   'DrawBitmapSPI
   27BDFFA8 AFBF0054 AFBE0050 AFB7004C AFB60048 AFB50044 AFB40040 AFB3003C
   AFB20038 AFB10034 AFB00030 0080F021 AFA5005C 00C0B021 AFA70064 8FB2006C
   8FB50070 3C029D00 8C420094 8C420000 0082102B 104000C4 8FB70074 3C029D00
   8C420098 8C420000 00A2102B 104000BE 8FA20068 70461802 00643021 04C000BA
   70471002 00451821 046000B7 8FA3005C 28A50000 0005180B 00602821 3C03BF80
   8C645830 AFA40018 8C645800 AFA4001C 8C645840 AFA40020 AC605800 3C040001
   34848260 AC645800 AC605830 24040C00 AC645840 7E503C00 7E513A00 325200FF
   7EB33C00 7EB43A00 32B500FF 24A7FFFF 24030001 AFA30010 03C02021 24C6FFFF
   00E23821 0411FF1F 00000000 3C029D00 8C430090 8C42001C 8064002C 0040F809
   24050006 3C049D00 8C830090 8C82001C 8064002D 0040F809 24050005 00161023
   AFA20024 8FA20064 70567802 25EFFFFF AFB60028 8FAE005C 00005821 0000C821
   8FAD0068 3C069D00 240C0001 10000059 3C02BF80 25CE0001 25C3FFFF 0460004E
   00000000 8CC30098 8C630000 006E182B 14600076 8FBF0054 1EC00037 01E04821
   10000045 00000000 24630001 2464FFFF 0480002A 00000000 8CC40094 8C840000
   0083202B 14800025 00000000 91040000 00872024 10800012 00000000 8C445810
   30840002 1480FFFD 00000000 AC505820 8C445810 30840002 1480FFFD 00000000
   AC515820 8C445810 30840002 1480FFFD 00000000 AC525820 10000010 00000000
   8C445810 30840002 1480FFFD 00000000 AC535820 8C445810 30840002 1480FFFD
   00000000 AC545820 8C445810 30840002 1480FFFD 00000000 AC555820 5465FFD3
   24630001 254A0001 15560005 2529FFFF 10000011 00000000 03C01821 00005021
   014B2021 24850007 28880000 00A8200B 000440C3 02E84021 000927C3 00042742
   01243821 30E70007 00E43823 00EC3804 1000FFBD 006D2821 55D8FFAF 25CE0001
   27390001 8FA30024 01E37821 8FA40028 01645821 8FA40064 0324182A 10600005
   8FA30068 1C60FFA3 01C3C021 1000FFF5 27390001 3C02BF80 8C435810 30630080
   1060FFFD 00000000 10000002 3C02BF80 8C435820 8C435810 30630020 1060FFFC
   3C10BF80 AE005800 24030040 3C02BF80 AC435814 3C029D00 8C430090 8C42001C
   8064002D 0040F809 24050006 AE005800 8FA40018 AE045830 8FA20020 AE025840
   8FA3001C AE035800 8FBF0054 8FBE0050 8FB7004C 8FB60048 8FB50044 8FB40040
   8FB3003C 8FB20038 8FB10034 8FB00030 03E00008 27BD0058
   'DrawRectangleSPI
   27BDFFB0 AFBF004C AFBE0048 AFB70044 AFB60040 AFB5003C AFB40038 AFB30034
   AFB20030 AFB1002C AFB00028 8FB00060 3C02BF80 8C435830 AFA30018 8C435800
   AFA3001C 8C435840 AFA30020 AC405800 3C030001 34638260 AC435800 AC405830
   24030C00 AC435840 0086102A 14400005 00A7102A 00801021 00C02021 00403021
   00A7102A 14400004 28940000 00A01021 00E02821 00403821 0014200B 0080A021
   3C029D00 8C420094 8C420000 0082202B 2443FFFF 0064A00A 28D50000 0015300B
   00C0A821 00C2182B 2442FFFF 0043A80A 28B60000 0016280B 00A0B021 3C029D00
   8C420098 8C420000 00A2202B 2443FFFF 0064B00A 28F70000 0017380B 00E0B821
   00E2182B 2442FFFF 0043B80A 7E123C00 7E113A00 321000FF 241E0001 AFBE0010
   02802021 02C02821 02A03021 02E03821 0411FE2E 00000000 3C139D00 8E630090
   8E62001C 8064002C 0040F809 24050006 8E630090 8E62001C 8064002D 0040F809
   24050005 03D4A023 0295A821 03D62023 00972021 70952002 10800013 2484FFFF
   3C02BF80 8C435810 30630002 1460FFFD 00000000 AC525820 8C435810 30630002
   1460FFFD 00000000 AC515820 8C435810 30630002 1460FFFD 00000000 AC505820
   1480FFF0 2484FFFF 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C425810
   30420020 14400006 3C02BF80 8C435820 8C435810 30630020 1060FFFC 00000000
   3C10BF80 AE005800 24030040 3C02BF80 AC435814 3C029D00 8C430090 8C42001C
   8064002D 0040F809 24050006 AE005800 8FA20018 AE025830 8FA30020 AE035840
   8FA2001C AE025800 8FBF004C 8FBE0048 8FB70044 8FB60040 8FB5003C 8FB40038
   8FB30034 8FB20030 8FB1002C 8FB00028 03E00008 27BD0050
   'getFPC
   27BDFFF8 AFBF0004 00852023 03E42021 ACC40000 8FBF0004 03E00008 27BD0008
   'pstring
   27BDFFE0 AFBF001C AFB00018 00808021 00002021 3C059D00 24A50A5C 27A60010
   0411FFEF 00000000 8FA40010 3C029D00 8C42002C 0040F809 02042021 8FBF001C
   8FB00018 03E00008 27BD0020
   'main
   27BDFFC0 AFBF003C AFB50038 AFB40034 AFB30030 AFB2002C AFB10028 AFB00024
   00808821 00A08021 00C09021 00E09821 8FB40050 00002021 3C059D00 24A50ACC
   27A60018 0411FFD3 00000000 3C029D00 8C430090 8E040000 A064002E 8C430090
   8E240000 A064002C 8C430090 8E440000 A064002D 8C430090 92640000 24840002
   A0640015 8C420090 80430015 28640004 5480000A 24030014 3C059D00 2463FFFC
   A0430015 8CA20090 80430015 28640004 5080FFFB 2463FFFC 24030014 A0430014
   3C109D00 8E030090 8E020010 8064002E 24050008 0040F809 00003021 8E030090
   8E020010 8064002E 24050065 0040F809 00003021 8E030090 8E02001C 8064002E
   0040F809 24050006 8E030090 8E020010 8064002C 24050008 0040F809 00003021
   8E030090 8E020010 8064002C 24050065 0040F809 00003021 8E030090 8E02001C
   8064002C 0040F809 24050006 8E030090 8E020010 8064002D 24050008 0040F809
   00003021 8E030090 8E020010 8064002D 24050065 0040F809 00003021 8E030090
   8E02001C 8064002D 0040F809 24050006 3C02BF81 8C44F220 7C84D800 3C020661
   3442A053 1082000B 24030050 3C02BF81 8C43F220 7C63D800 3C020660 3442A053
   00621826 24020050 2404000C 0083100B 00401821 3C029D00 8C420088 00621821
   8C640000 24030064 54830007 00008821 3C03BF80 8C715830 8C725800 8C755840
   10000003 3C03BF81 00009021 3C03BF81 8C65F220 7CA5D800 3C040661 3484A053
   10A4000B 24030050 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00831826
   24040050 2405000C 00A3200B 00801821 00621021 8C430000 24020065 1062008E
   3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B
   24040014 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 24030014
   24050003 00A4180B 00602021 24050008 0040F809 00003021 3C029D00 8C420010
   3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 24040014 3C03BF81
   8C64F220 7C84D800 3C030660 3463A053 00832026 24030014 24050003 00A4180B
   00602021 24050065 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220
   7CA5D800 3C030661 3463A053 10A3000B 24040029 3C03BF81 8C64F220 7C84D800
   3C030660 3463A053 00832026 24030029 2405000E 00A4180B 00602021 24050002
   0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661
   3463A053 10A3000B 24040029 3C03BF81 8C64F220 7C84D800 3C030660 3463A053
   00832026 24030029 2405000E 00A4180B 00602021 24050065 0040F809 00003021
   3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B
   2404000E 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 2403000E
   24050019 00A4180B 00602021 24050008 0040F809 00003021 3C029D00 8C420010
   3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 2404000E 3C03BF81
   8C64F220 7C84D800 3C030660 3463A053 00832026 2403000E 24050019 00A4180B
   00602021 24050065 0040F809 00003021 3C02BF81 8C43FA84 24040001 7C831804
   AC43FA84 3C02BF81 8C43FB04 24040003 7C831804 AC43FB04 3C02BF80 34038060
   AC435800 24030003 AC435830 24030C00 AC435840 16200005 3C109D00 8C515830
   8C525800 8C555840 3C109D00 8E030090 8E02001C 8064002E 0040F809 24050006
   8E020004 0040F809 24042710 8E030090 8E02001C 8064002E 0040F809 24050005
   8E020004 0040F809 24042710 8E030090 8E02001C 8064002E 0040F809 24050006
   240400E0 0411FC39 00000000 00002021 0411FC13 00000000 24040003 0411FC10
   00000000 24040009 0411FC0D 00000000 24040008 0411FC0A 00000000 24040016
   0411FC07 00000000 2404000A 0411FC04 00000000 2404003F 0411FC01 00000000
   24040078 0411FBFE 00000000 2404004C 0411FBFB 00000000 24040009 0411FBF8
   00000000 2404000A 0411FBF5 00000000 24040008 0411FBF2 00000000 24040016
   0411FBEF 00000000 2404001A 0411FBEC 00000000 2404000F 0411FBE9 00000000
   240400E1 0411FC09 00000000 00002021 0411FBE3 00000000 24040016 0411FBE0
   00000000 24040019 0411FBDD 00000000 24040003 0411FBDA 00000000 2404000F
   0411FBD7 00000000 24040005 0411FBD4 00000000 24040032 0411FBD1 00000000
   24040045 0411FBCE 00000000 24040046 0411FBCB 00000000 24040004 0411FBC8
   00000000 2404000E 0411FBC5 00000000 2404000D 0411FBC2 00000000 24040035
   0411FBBF 00000000 24040037 0411FBBC 00000000 2404000F 0411FBB9 00000000
   240400C0 0411FBD9 00000000 24040017 0411FBB3 00000000 24040015 0411FBB0
   00000000 240400C1 0411FBD0 00000000 24040041 0411FBAA 00000000 240400C5
   0411FBCA 00000000 00002021 0411FBA4 00000000 24040012 0411FBA1 00000000
   24040080 0411FB9E 00000000 24040036 0411FBBE 00000000 24040048 0411FB98
   00000000 2404003A 0411FBB8 00000000 24040066 0411FB92 00000000 240400B0
   0411FBB2 00000000 00002021 0411FB8C 00000000 240400B1 0411FBAC 00000000
   240400A0 0411FB86 00000000 240400B4 0411FBA6 00000000 24040002 0411FB80
   00000000 240400B6 0411FBA0 00000000 24040002 0411FB7A 00000000 24040002
   0411FB77 00000000 2404003B 0411FB74 00000000 240400B7 0411FB94 00000000
   240400C6 0411FB6E 00000000 240400F7 0411FB8E 00000000 240400A9 0411FB68
   00000000 24040051 0411FB65 00000000 2404002C 0411FB62 00000000 24040082
   0411FB5F 00000000 24040011 0411FB7F 00000000 8E020004 3C040001 0040F809
   3484D4C0 8E820000 8E830004 00431025 50400005 24040029 24040021 0411FB73
   00000000 24040029 0411FB70 00000000 3C109D00 8E020004 0040F809 240461A8
   8E020090 80500015 2610FFFF 24040036 0411FB66 00000000 24020001 1202000D
   2A020002 10400005 24020002 12000014 24040028 10000030 00000000 12020024
   24020003 1602002C 24040088 10000016 00000000 24040048 0411FB31 00000000
   3C029D00 8C430094 24040140 AC640000 8C420098 240301E0 1000001F AC430000
   0411FB27 00000000 3C029D00 8C430094 240401E0 AC640000 8C420098 24030140
   10000015 AC430000 0411FB1D 00000000 3C029D00 8C430094 24040140 AC640000
   8C420098 240301E0 1000000B AC430000 240400E8 0411FB12 00000000 3C029D00
   8C430094 240401E0 AC640000 8C420098 24030140 AC430000 8FA50018 3C029D00
   8C430048 3C049D00 2484079C 00852021 AC640000 8FA50018 8C43004C 3C049D00
   24840404 00852021 AC640000 8C430048 8C440094 8C860000 8C420098 8C470000
   AFA00010 8C620000 00002021 00002821 24C6FFFF 0040F809 24E7FFFF 3C02BF80
   AC515830 AC525800 AC555840 3C049D00 24841480 0411FD77 00000000 8FBF003C
   8FB50038 8FB40034 8FB30030 8FB2002C 8FB10028 8FB00024 03E00008 27BD0040
   '.rodata
   'startup
   39494C49 20383834 76697264 6C207265 6564616F 000A0D64
End CSub

 
     Page 8 of 12    
Print this page
© JAQ Software 2024