Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 16:24 19 May 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 : Calling matherp - driver for this LCD?

     Page 1 of 4    
Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9083
Posted: 11:23pm 14 Dec 2015
Copy link to clipboard 
Print this post

Hi there everyone, but especially matherp.

Have you, or anyone else for that matter, developed a driver for this LCD module by any chance?

This one appears to 8-bit parallel with touch for US$7.50
Also has uSD card slot, and on-board video RAM, which is an interesting twist.

It is in Arduino Shield footprint, but also looks like the connections are routed out to a 2x9.

I would be prepared to purchase and send this LCD to matherp, if he would be interested in developing a driver for it.

It would seem it uses the SPFD5408 controller chip, the datasheet for which can be found here .
Smoke makes things work. When the smoke gets out, it stops!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8606
Posted: 01:23am 15 Dec 2015
Copy link to clipboard 
Print this post

I haven't got one. Also, note it doesn't have a touch controller, and the touch outputs are multiplexed with the data signals.

There is also a ILI9341 with this form factor (parallel I/F). I gave up on it because I never got the touch to work reliably.

If you want a small cheap display with proper touch this works well

 
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 01:56am 15 Dec 2015
Copy link to clipboard 
Print this post

Whilst still on the topic, let me ask as well. Peter, is there any chance that you ever make a driver for those round displays with R61505V. I was able to easily purchase the TFT1P2477 model, and can send you a piece if you don't have it.
It is quite nice display for many interesting applications.Edited by kiiid 2015-12-16
http://rittle.org

--------------
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 761
Posted: 02:04am 15 Dec 2015
Copy link to clipboard 
Print this post

An awesome gauge display could be made using one... (sweet)
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9083
Posted: 08:30am 15 Dec 2015
Copy link to clipboard 
Print this post

  matherp said   I haven't got one. Also, note it doesn't have a touch controller, and the touch outputs are multiplexed with the data signals.

There is also a ILI9341 with this form factor (parallel I/F). I gave up on it because I never got the touch to work reliably.

If you want a small cheap display with proper touch this works well



Hey.

That display looks perfect. Did you do a driver for it's controller IC? (ILI9325)
Smoke makes things work. When the smoke gets out, it stops!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8606
Posted: 09:27am 15 Dec 2015
Copy link to clipboard 
Print this post

  Quote  Did you do a driver for it's controller IC? (ILI9325)


Yes I've done one. What MM are you looking at and what pin use? I've done PortC pins on a 44-pin (D0-D7=25,26,27,36,37,38,2,3, RS=4, WR=5, RESET=any), code attached.

64-pin with standard LCD-D0-D7, RS, WR, RESET is an easy mod.

  Quote  is there any chance that you ever make a driver for those round displays with R61505V. I was able to easily purchase the TFT1P2477 model, and can send you a piece if you don't have it.


Looks doable send me a PM and I'll let you have an address if you want to loan me one


sub mm.startup
CPU 48
Display.Open(42,3) 'reset on pin 42, landscape
end sub

'**********Append this code and below onto the end of your MMBasic program***********
'
' Copyright (c) Peter Mather 2015
'
' Initialise the Display Driver for ILI9325 controlled TFT LCD Panel in 8-bit databus, 16-bit mode
' i.e. RGB565. This is optimised for the 44-pin uM2 and uses defined pinout except for the reset pin
' It achieves performance approaching that of the uM+ by heavily optimising bus I/O
' NOTE For this display in 8-bit mode you must connect to DB8-DB15 and not DB0 to DB7
'
' Display.Open initialises the loadable CFunction driver so that you can use all of the
' MMBasic graphic commands in your program.
'
' RST% is pin number of Reset signal
' Orient% PORTRAIT=0,RPORTRAIT=1,LANDSCAPE=2,RLANDSCAPE=3
'
' After Calling Display.Open, any of the usual MM Graphic commands may be used
' in your MMBasic program, eg BOX, TEXT, LINE, CIRCLE etc
'
' Note: you must use pins 25,26,27,36,37,38,2,3 for the data pins DB8-DB15
' you must use pin 4 for RS and pin 5 for WR
' Tie CS Low and tie RD high
'
' Ver 1.02 2015-08-19 Initial Release
'
'**********************************************************************************

sub Display.Open(RST%,Orient%) as integer

LOCAL CFuncAddr%
LOCAL Retrn%


CFuncAddr%=PEEK(CFUNADDR ILI9325_V44)

Retrn% = ILI9325_V44(CFuncAddr%,RST%,Orient% )

END SUB

' File ILI9325_V44.bas written 15-Sep-2015 11:56:02
'
CFunction ILI9325_V44
0000001C
'writeRegister
7C833A00 34630200 3C02BF88 AC436230 24030200 AC436234 AC436238 308400FF
34840200 AC446230 AC436234 AC436238 2402FFFF 10A2000C 7CA33A00 34630300
3C02BF88 AC436230 24030200 AC436234 AC436238 30A500FF 34A50300 AC456230
AC436234 AC436238 03E00008 00000000
'main
27BDFFB0 AFBF004C AFB40048 AFB30044 AFB20040 AFB1003C AFB00038 0080A021
3C029D00 8C430090 8CA40000 A064002A 8C420090 8CC30000 A0430015 24020019
AFA20018 2402001A AFA2001C 2402001B AFA20020 24020024 AFA20024 24020025
AFA20028 24020026 AFA2002C 24020002 AFA20030 24020003 AFA20034 27B20018
27B30038 3C109D00 8E510000 8E020010 02202021 24050008 0040F809 00003021
8E020010 02202021 24050065 0040F809 00003021 8E02001C 02202021 0040F809
24050005 26520004 5653FFF0 8E510000 3C109D00 8E020010 24040004 24050008
0040F809 00003021 8E020010 24040004 24050065 0040F809 00003021 3C11BF88
24020100 AE226238 8E020010 24040005 24050008 0040F809 00003021 8E020010
24040005 24050065 0040F809 00003021 24020200 AE226238 8E030090 8E020010
8064002A 24050008 0040F809 00003021 8E030090 8E020010 8064002A 24050065
0040F809 00003021 8E030090 8E02001C 8064002A 0040F809 24050006 8E020090
80440029 10800006 3C029D00 3C029D00 8C42001C 0040F809 24050006 3C029D00
24420070 3C129D00 26520894 0242182B 10600004 02429023 8E830000 10000003
02439021 8E830000 02439021 3C119D00 26310A40 0222182B 10600004 02228823
8E830000 10000003 02238821 8E830000 02238821 3C109D00 8E030090 8E02001C
8064002A 0040F809 24050006 8E020004 0040F809 3404C350 8E030090 8E02001C
8064002A 0040F809 24050005 8E020004 0040F809 3404C350 8E030090 8E02001C
8064002A 0040F809 24050006 8E020004 0040F809 3404C350 240400E5 240578F0
0411FF4B 00000000 24040001 24050100 0411FF47 00000000 24040002 24050700
0411FF43 00000000 24040003 24051030 0411FF3F 00000000 24040004 00002821
0411FF3B 00000000 24040008 24050207 0411FF37 00000000 24040009 00002821
0411FF33 00000000 2404000A 00002821 0411FF2F 00000000 2404000C 00002821
0411FF2B 00000000 2404000D 00002821 0411FF27 00000000 2404000F 00002821
0411FF23 00000000 24040010 00002821 0411FF1F 00000000 24040011 24050007
0411FF1B 00000000 24040012 00002821 0411FF17 00000000 24040013 00002821
0411FF13 00000000 24040007 24050001 0411FF0F 00000000 8E020004 0040F809
3404C350 24040010 24051090 0411FF08 00000000 24040011 24050227 0411FF04
00000000 8E020004 0040F809 3404C350 24040012 2405001F 0411FEFD 00000000
8E020004 0040F809 3404C350 24040013 24051500 0411FEF6 00000000 24040029
24050027 0411FEF2 00000000 2404002B 2405000D 0411FEEE 00000000 8E020004
0040F809 3404C350 24040020 00002821 0411FEE7 00000000 24040021 00002821
0411FEE3 00000000 24040030 00002821 0411FEDF 00000000 24040031 24050707
0411FEDB 00000000 24040032 24050307 0411FED7 00000000 24040035 24050200
0411FED3 00000000 24040036 24050008 0411FECF 00000000 24040037 24050004
0411FECB 00000000 24040038 00002821 0411FEC7 00000000 24040039 24050707
0411FEC3 00000000 2404003C 24050002 0411FEBF 00000000 2404003D 24051D04
0411FEBB 00000000 24040050 00002821 0411FEB7 00000000 24040051 240500EF
0411FEB3 00000000 24040052 00002821 0411FEAF 00000000 24040053 2405013F
0411FEAB 00000000 24040060 3405A700 0411FEA7 00000000 24040061 24050001
0411FEA3 00000000 2404006A 00002821 0411FE9F 00000000 24040080 00002821
0411FE9B 00000000 24040081 00002821 0411FE97 00000000 24040082 00002821
0411FE93 00000000 24040083 00002821 0411FE8F 00000000 24040084 00002821
0411FE8B 00000000 24040085 00002821 0411FE87 00000000 24040090 24050010
0411FE83 00000000 24040092 24050600 0411FE7F 00000000 24040007 24050133
0411FE7B 00000000 8E020090 80420015 24030002 10430008 24030004 1043000A
24051000 24030001 10430007 24051028 10000002 24050008 24051030 38420003
24031018 0062280A 24040003 0411FE68 00000000 3C029D00 8C420090 90420015
30420001 10400008 3C029D00 8C430098 240400F0 AC640000 8C420094 24030140
10000007 AC430000 8C430094 240400F0 AC640000 8C420098 24030140 AC430000
3C109D00 8E020048 AC520000 8E020048 8E030094 8C660000 8E030098 8C670000
AFA00010 8C420000 00002021 00002821 24C6FFFF 0040F809 24E7FFFF 8E02004C
AC510000 00001021 00001821 8FBF004C 8FB40048 8FB30044 8FB20040 8FB1003C
8FB00038 03E00008 27BD0050
'defineregion
27BDFFD8 AFBF0024 AFB30020 AFB2001C AFB10018 AFB00014 2482FFFF 00461021
24A3FFFF 00671821 3C089D00 8D060094 8CC60000 8D070098 8CE80000 00C8382B
10E00003 01004821 00C04821 01003021 3C079D00 8CE70090 80E80015 24070002
15070006 24070004 00808021 00409021 00A08821 10000015 00609821 1507000A
24070001 00021027 00498021 00049027 02499021 00031827 00668821 00059827
10000012 02669821 15070009 24070003 00031827 00698021 00059027 02499021
00808821 10000009 00409821 24070003 15070006 00021027 00A08021 00609021
00468821 00049827 02669821 24040020 02002821 0411FDFB 00000000 24040021
02202821 0411FDF7 00000000 24040050 02002821 0411FDF3 00000000 24040052
02202821 0411FDEF 00000000 24040051 02402821 0411FDEB 00000000 24040053
02602821 0411FDE7 00000000 24040022 2405FFFF 0411FDE3 00000000 8FBF0024
8FB30020 8FB2001C 8FB10018 8FB00014 03E00008 27BD0028
'DrawRectangle_ILI9325
27BDFFE0 AFBF001C AFB10018 AFB00014 0086102A 14400004 8FB00030 00801021
00C02021 00403021 00A7102A 14400005 28820000 00A01021 00E02821 00403821
28820000 0002200B 3C029D00 8C420094 8C430000 0083402B 2462FFFF 0048200A
28C20000 0002300B 00C3102B 2463FFFF 0062300A 28A20000 0002280B 3C029D00
8C420098 8C430000 00A3402B 2462FFFF 0048280A 28E20000 0002380B 00E01021
00E3382B 2463FFFF 0067100A 24070001 00E41823 00663021 00E53823 00E23821
70E68802 0411FF70 00000000 7E0220C0 00103203 30C6F800 00463025 00108143
321007E0 00D03025 00062A02 30A500FC 34A50300 30C600FC 34C60300 50A60005
3C02BF88 16200018 2624FFFF 10000023 8FBF001C AC456230 24030200 AC436234
AC436238 AC436234 AC436238 2631FFFF 12200019 2631FFFF 3C03BF88 24020200
2404FFFF AC626234 AC626238 AC626234 AC626238 2631FFFF 1624FFFA 8FBF001C
1000000F 8FB10018 3C02BF88 24030200 2407FFFF AC456230 AC436234 AC436238
AC466230 AC436234 AC436238 2484FFFF 1487FFF8 00000000 8FBF001C 8FB10018
8FB00014 03E00008 27BD0020
'DrawBitmap_ILI9325
27BDFFB0 AFBF004C AFBE0048 AFB70044 AFB60040 AFB5003C AFB40038 AFB30034
AFB20030 AFB1002C AFB00028 AFA40050 00A0F021 00C09021 AFA7005C 8FB00060
8FA30064 8FA20068 8FB3006C 3C069D00 8CC70094 8CF10000 8CC60098 8CC60000
AFA60010 7C7620C0 00033203 30C6F800 02C6B025 00031943 306307E0 02C3B025
7C5420C0 00021A03 3063F800 0283A025 00021143 304207E0 0282A025 0016BA02
32F700FC 36F70300 32D600FC 36D60300 0014AA02 32B500FC 36B50300 329400FC
72123002 8FA2005C 72023802 0411FF03 00000000 8FA3005C 1860005C 36940300
02007821 AFBE0014 00121023 AFA2001C 7072F002 27DEFFFF AFB20020 00007021
AFA00018 24180001 3C05BF88 1000004B 24060200 04400019 0051202B 50800018
24630001 05220016 24630001 51600014 24630001 91A40000 008C2024 10800009
00000000 ACB76230 ACA66234 ACA66238 ACB66230 ACA66234 ACA66238 10000008
24630001 ACB56230 ACA66234 ACA66238 ACB46230 ACA66234 ACA66238 24630001
1470FFE4 24420001 24E70001 2508FFFF 10F20010 014F5021 00EE1021 24430007
284D0000 006D100B 000268C3 026D6821 000817C3 00021742 01026021 318C0007
01826023 01986004 01401021 1000FFD1 00001821 27390001 17300004 25290001
10000009 8FA30018 0000C821 1A40FFF9 8FAA0050 03C04021 00003821 8FA20010
1000FFE5 0122582B 24630001 AFA30018 8FA20014 004F1021 AFA20014 8FA3001C
03C3F021 8FA20020 01C27021 8FA30018 8FA2005C 10620006 8FBF004C 1E00FFEA
8FA90014 1000FFF0 8FA30018 8FBF004C 8FBE0048 8FB70044 8FB60040 8FB5003C
8FB40038 8FB30034 8FB20030 8FB1002C 8FB00028 03E00008 27BD0050
End CFunction
Edited by matherp 2015-12-16
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 761
Posted: 05:27pm 15 Dec 2015
Copy link to clipboard 
Print this post

@ kiiid...

Is This the Rounder you were referring to..? Not sure what the TFT1P2477 is about.... Also, I think this looks just like the one that 4-D systems uses for there unit... Humm... $10 bucks and a driver on the MM is way cheaper that the $70 they want... And WAY easier to program directly...

Just sayin...
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9083
Posted: 05:32pm 15 Dec 2015
Copy link to clipboard 
Print this post

@ matherp - you're a champ, thanks. I will probably end up using the 44, so this code should work right out of the box.
Smoke makes things work. When the smoke gets out, it stops!
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 761
Posted: 06:19pm 15 Dec 2015
Copy link to clipboard 
Print this post

@matherp...

I just received 10 of these "raw" displays from E-bay and they say it's the ILI9341 graphics driver... However, after asking the seller for some info and pin-outs data, looking at the "English" PDF file, it says it's the ILI9325 controller... Sure is a good thing you have code for both..!!

I want to create a PCB with a FFT connector to interface to this unit, making the thinnest MM touch PCB possible... I will be adding a Rs-485 comms interface to use it as a "setup controller" for the telemetry module for the EIS system... The telemetry module will be housed into a "potted" module for toughness and can't have a glass display in it as originally planned... So, since the main system data transfer buss is going to use Rs-485, I wanted to add this unit on as a slave so the end user can do the setups easily without resorting to a PC and having to setup Teraterm..Ect...

I know I will need to add a touch controller in to the design also...



I will also make some kind of interface to bring out the MM pins...
Still looking for the pinouts.. Will update later... (go bed now)



 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8606
Posted: 10:32pm 15 Dec 2015
Copy link to clipboard 
Print this post

Grogs and Zonker

Please be aware that to use these displays in 8-bit mode (rather than 16) you connect the data lines to DB8-DB15 and NOT DB0-DB7. I'd hate for you to layout any boards and get this wrong.

On the display I've got there is a jumper J3 (middle of the board) which selects between 8-bit and 16-bit. Leaving the jumper open is for 8-bit




There seems to be some sort of bug when the above code is stored in a library. Please replace mm.startup and Display.open with the single routine below:

sub mm.startup
CPU 48
LOCAL CFuncAddr%
LOCAL Retrn%
CFuncAddr%=PEEK(CFUNADDR ILI9325_V44)
Retrn% = ILI9325_V44(CFuncAddr%,42,3 ) 'CFunction address, reset pin, orientation
end sub

Edited by matherp 2015-12-17
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9083
Posted: 11:02pm 15 Dec 2015
Copy link to clipboard 
Print this post

  matherp said   Grogs and Zonker

Please be aware that to use these displays in 8-bit mode (rather than 16) you connect the data lines to DB8-DB15 and NOT DB0-DB7. I'd hate for you to layout any boards and get this wrong.

On the display I've got there is a jumper J3 (middle of the board) which selects between 8-bit and 16-bit. Leaving the jumper open is for 8-bit


Acknowledged.


  matherp said  There seems to be some sort of bug when the above code is stored in a library. Please replace mm.startup and Display.open with the single routine below:

sub mm.startup
CPU 48
LOCAL CFuncAddr%
LOCAL Retrn%
CFuncAddr%=PEEK(CFUNADDR ILI9325_V44)
Retrn% = ILI9325_V44(CFuncAddr%,42,3 ) 'CFunction address, reset pin, orientation
end sub



Does that single routine fix the bug of storing the driver in the library?
I kinda need to put it there and was planning to, cos I need a good chunk of the available program memory.
Smoke makes things work. When the smoke gets out, it stops!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8606
Posted: 11:32pm 15 Dec 2015
Copy link to clipboard 
Print this post

  Quote  Does that single routine fix the bug of storing the driver in the library?


Yes the single routine works fine in a library, I've reported the issue to Geoff. It is difficult to diagnose but is seems like one Basic routine calling another calling the Cfunction all in a library creates some sort of problem but it could be just me
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9083
Posted: 11:36pm 15 Dec 2015
Copy link to clipboard 
Print this post

Cool bananas, thanks.
Smoke makes things work. When the smoke gets out, it stops!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8606
Posted: 07:44am 16 Dec 2015
Copy link to clipboard 
Print this post

Here is a slight update on the driver to tidy it up and remove some redundant "copy-and-paste" code. C source attached for those interested:

2015-12-16_173824_ili9325.zip

[code]
sub mm.startup
CPU 48
ILI9325_V44(PEEK(CFUNADDR ILI9325_V44),42,3 )' Cfunction address, reset pin, orientation
end sub

'**********Append this code and below onto the end of your MMBasic program***********
'
' Author: Peter Mather 2015
'
' Initialise the Display Driver for ILI9325 controlled TFT LCD Panel in 8-bit databus, 16-bit mode
' i.e. RGB565. This is optimised for the 44-pin uM2 and uses defined pinout except for the reset pin
' NOTE For this display in 8-bit mode you must connect to DB8-DB15 and not DB0 to DB7
'
' Reset% is pin number of Reset signal
' Orientation%: PORTRAIT=0,RPORTRAIT=1,LANDSCAPE=2,RLANDSCAPE=3
'
' After Calling ILI9325_V44, any of the usual MM Graphic commands may be used
' in your MMBasic program, eg BOX, TEXT, LINE, CIRCLE etc
'
' Note: you must use pins 25,26,27,36,37,38,2,3 for the data pins DB8-DB15
' you must use pin 4 for RS and pin 5 for WR
' Tie CS Low and tie RD high
'
' Ver 1.02 2015-08-19 Initial Release
' ver 1.03 2015-12-16 Tidy up
'
'**********************************************************************************
' File ILI9325_V44.bas written 15-Sep-2015 11:56:02
'
CSUB ILI9325_V44
0000001C
'writeRegister
7C833A00 34630200 3C02BF88 AC436230 24030200 AC436234 AC436238 308400FF
34840200 AC446230 AC436234 AC436238 2402FFFF 10A2000C 7CA33A00 34630300
3C02BF88 AC436230 24030200 AC436234 AC436238 30A500FF 34A50300 AC456230
AC436234 AC436238 03E00008 00000000
'main
27BDFFB0 AFBF004C AFB40048 AFB30044 AFB20040 AFB1003C AFB00038 0080A021
3C029D00 8C430090 8CA40000 A064002A 8C420090 8CC30000 A0430015 24020019
AFA20018 2402001A AFA2001C 2402001B AFA20020 24020024 AFA20024 24020025
AFA20028 24020026 AFA2002C 24020002 AFA20030 24020003 AFA20034 27B20018
27B30038 3C109D00 8E510000 8E020010 02202021 24050008 0040F809 00003021
8E020010 02202021 24050065 0040F809 00003021 8E02001C 02202021 0040F809
24050005 26520004 5653FFF0 8E510000 3C109D00 8E020010 24040004 24050008
0040F809 00003021 8E020010 24040004 24050065 0040F809 00003021 3C11BF88
24020100 AE226238 8E020010 24040005 24050008 0040F809 00003021 8E020010
24040005 24050065 0040F809 00003021 24020200 AE226238 8E030090 8E020010
8064002A 24050008 0040F809 00003021 8E030090 8E020010 8064002A 24050065
0040F809 00003021 8E030090 8E02001C 8064002A 0040F809 24050006 8E020090
80440029 10800006 3C029D00 3C029D00 8C42001C 0040F809 24050006 3C029D00
24420070 3C129D00 26520894 0242182B 10600004 02429023 8E830000 10000003
02439021 8E830000 02439021 3C119D00 26310A38 0222182B 10600004 02228823
8E830000 10000003 02238821 8E830000 02238821 3C109D00 8E030090 8E02001C
8064002A 0040F809 24050006 8E020004 0040F809 3404C350 8E030090 8E02001C
8064002A 0040F809 24050005 8E020004 0040F809 3404C350 8E030090 8E02001C
8064002A 0040F809 24050006 8E020004 0040F809 3404C350 240400E5 240578F0
0411FF4B 00000000 24040001 24050100 0411FF47 00000000 24040002 24050700
0411FF43 00000000 24040003 24051030 0411FF3F 00000000 24040004 00002821
0411FF3B 00000000 24040008 24050207 0411FF37 00000000 24040009 00002821
0411FF33 00000000 2404000A 00002821 0411FF2F 00000000 2404000C 00002821
0411FF2B 00000000 2404000D 00002821 0411FF27 00000000 2404000F 00002821
0411FF23 00000000 24040010 00002821 0411FF1F 00000000 24040011 24050007
0411FF1B 00000000 24040012 00002821 0411FF17 00000000 24040013 00002821
0411FF13 00000000 24040007 24050001 0411FF0F 00000000 8E020004 0040F809
3404C350 24040010 24051090 0411FF08 00000000 24040011 24050227 0411FF04
00000000 8E020004 0040F809 3404C350 24040012 2405001F 0411FEFD 00000000
8E020004 0040F809 3404C350 24040013 24051500 0411FEF6 00000000 24040029
24050027 0411FEF2 00000000 2404002B 2405000D 0411FEEE 00000000 8E020004
0040F809 3404C350 24040020 00002821 0411FEE7 00000000 24040021 00002821
0411FEE3 00000000 24040030 00002821 0411FEDF 00000000 24040031 24050707
0411FEDB 00000000 24040032 24050307 0411FED7 00000000 24040035 24050200
0411FED3 00000000 24040036 24050008 0411FECF 00000000 24040037 24050004
0411FECB 00000000 24040038 00002821 0411FEC7 00000000 24040039 24050707
0411FEC3 00000000 2404003C 24050002 0411FEBF 00000000 2404003D 24051D04
0411FEBB 00000000 24040050 00002821 0411FEB7 00000000 24040051 240500EF
0411FEB3 00000000 24040052 00002821 0411FEAF 00000000 24040053 2405013F
0411FEAB 00000000 24040060 3405A700 0411FEA7 00000000 24040061 24050001
0411FEA3 00000000 2404006A 00002821 0411FE9F 00000000 24040080 00002821
0411FE9B 00000000 24040081 00002821 0411FE97 00000000 24040082 00002821
0411FE93 00000000 24040083 00002821 0411FE8F 00000000 24040084 00002821
0411FE8B 00000000 24040085 00002821 0411FE87 00000000 24040090 24050010
0411FE83 00000000 24040092 24050600 0411FE7F 00000000 24040007 24050133
0411FE7B 00000000 8E020090 80420015 24030002 10430008 24030004 1043000A
24051000 24030001 10430007 24051028 10000002 24050008 24051030 38420003
24031018 0062280A 24040003 0411FE68 00000000 3C029D00 8C420090 90420015
30420001 10400008 3C029D00 8C430098 240400F0 AC640000 8C420094 24030140
10000007 AC430000 8C430094 240400F0 AC640000 8C420098 24030140 AC430000
3C109D00 8E020048 AC520000 8E020048 8E030094 8C660000 8E030098 8C670000
AFA00010 8C420000 00002021 00002821 24C6FFFF 0040F809 24E7FFFF 8E02004C
AC510000 00001021 00001821 8FBF004C 8FB40048 8FB30044 8FB20040 8FB1003C
8FB00038 03E00008 27BD0050
'defineregion
27BDFFD8 AFBF0024 AFB30020 AFB2001C AFB10018 AFB00014 2482FFFF 00461021
24A3FFFF 00671821 3C089D00 8D060094 8CC60000 8D070098 8CE80000 00C8382B
10E00003 01004821 00C04821 01003021 3C079D00 8CE70090 80E80015 24070002
15070006 24070004 00808021 00409021 00A08821 10000015 00609821 1507000A
24070001 00021027 00498021 00049027 02499021 00031827 00668821 00059827
10000012 02669821 15070009 24070003 00031827 00698021 00059027 02499021
00808821 10000009 00409821 24070003 15070006 00021027 00A08021 00609021
00468821 00049827 02669821 24040020 02002821 0411FDFB 00000000 24040021
02202821 0411FDF7 00000000 24040050 02002821 0411FDF3 00000000 24040052
02202821 0411FDEF 00000000 24040051 02402821 0411FDEB 00000000 24040053
02602821 0411FDE7 00000000 24040022 2405FFFF 0411FDE3 00000000 8FBF0024
8FB30020 8FB2001C 8FB10018 8FB00014 03E00008 27BD0028
'DrawRectangle_ILI9325
27BDFFE0 AFBF001C AFB10018 AFB00014 0086102A 14400004 8FB00030 00801021
00C02021 00403021 00A7102A 14400005 28820000 00A01021 00E02821 00403821
28820000 0002200B 3C029D00 8C420094 8C430000 0083402B 2462FFFF 0048200A
28C20000 0002300B 00C3102B 2463FFFF 0062300A 28A20000 0002280B 3C029D00
8C420098 8C430000 00A3402B 2462FFFF 0048280A 28E20000 0002380B 00E01021
00E3382B 2463FFFF 0067100A 24070001 00E41823 00663021 00E53823 00E23821
70E68802 0411FF70 00000000 00102C03 30A500F8 7E021340 00A22825 34A50300
00101143 304200E0 7E1020C0 00508025 36100300 50B00005 3C02BF88 16200018
2624FFFF 10000023 8FBF001C AC456230 24030200 AC436234 AC436238 AC436234
AC436238 2631FFFF 12200019 2631FFFF 3C03BF88 24020200 2404FFFF AC626234
AC626238 AC626234 AC626238 2631FFFF 1624FFFA 8FBF001C 1000000F 8FB10018
3C02BF88 24030200 2406FFFF AC456230 AC436234 AC436238 AC506230 AC436234
AC436238 2484FFFF 1486FFF8 00000000 8FBF001C 8FB10018 8FB00014 03E00008
27BD0020
'DrawBitmap_ILI9325
27BDFFB0 AFBF004C AFBE0048 AFB70044 AFB60040 AFB5003C AFB40038 AFB30034
AFB20030 AFB1002C AFB00028 AFA40050 00A0F021 00C09021 AFA7005C 8FB00060
8FA30064 8FA20068 8FB3006C 3C069D00 8CC70094 8CF10000 8CC60098 8CC60000
AFA60010 0003BC03 32F700F8 7C661340 02E6B825 36F70300 0003B143 32D600E0
7C6320C0 02C3B025 36D60300 0002AC03 32B500F8 7C431340 02A3A825 36B50300
0002A143 329400E0 7C4220C0 0282A025 72123002 8FA2005C 72023802 0411FF09
00000000 8FA3005C 1860005C 36940300 02007821 AFBE0014 00121023 AFA2001C
7072F002 27DEFFFF AFB20020 00007021 AFA00018 24180001 3C05BF88 1000004B
24060200 04400019 0051202B 50800018 24630001 05220016 24630001 51600014
24630001 91A40000 008C2024 10800009 00000000 ACB76230 ACA66234 ACA66238
ACB66230 ACA66234 ACA66238 10000008 24630001 ACB56230 ACA66234 ACA66238
ACB46230 ACA66234 ACA66238 24630001 1470FFE4 24420001 24E70001 2508FFFF
10F20010 014F5021 00EE1021 24430007 284D0000 006D100B 000268C3 026D6821
000817C3 00021742 01026021 318C0007 01826023 01986004 01401021 1000FFD1
00001821 27390001 17300004 25290001 10000009 8FA30018 0000C821 1A40FFF9
8FAA0050 03C04021 00003821 8FA20010 1000FFE5 0122582B 24630001 AFA30018
8FA20014 004F1021 AFA20014 8FA3001C 03C3F021 8FA20020 01C27021 8FA30018
8FA2005C 10620006 8FBF004C 1E00FFEA 8FA90014 1000FFF0 8FA30018 8FBF004C
8FBE0048 8FB70044 8FB60040 8FB5003C 8FB40038 8FB30034 8FB20030 8FB1002C
8FB00028 03E00008 27BD0050
End CSUB
[/code] Edited by matherp 2015-12-17
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9083
Posted: 06:55pm 16 Dec 2015
Copy link to clipboard 
Print this post

Great, many thanks.

I have some LCD's coming, but I doubt they will arrive before Christmas.

...but you never know!


Smoke makes things work. When the smoke gets out, it stops!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8606
Posted: 07:13am 21 Dec 2015
Copy link to clipboard 
Print this post

I found a bug in the code when porting to the 64-pin MM+ so please find attached an updated version for the 44-pin. Please note I have changed the parameter order on the 44-pin to be compatible with the 64-pin which doesn't need the pinout specifying as it uses the standard LCD pins as described in the MM manual.

44-pin:

2015-12-21_171132_ILI9325v44.zip

and a new version for the 64-pin:

2015-12-21_171216_ili9325.zip

C source:

2015-12-21_171149_ILI9325v64.zip
 
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 07:20am 21 Dec 2015
Copy link to clipboard 
Print this post

This is great! Thank you very much for the 64-pin version.
I will give it a run on my display and report soon
http://rittle.org

--------------
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9083
Posted: 12:29pm 21 Dec 2015
Copy link to clipboard 
Print this post

...what he said...
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9083
Posted: 03:54am 27 Dec 2015
Copy link to clipboard 
Print this post

kiiid - did you get a chance to try out the new driver on your LCD?

I am probably going to end up using this on a MM+ too......
Smoke makes things work. When the smoke gets out, it stops!
 
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 05:11am 27 Dec 2015
Copy link to clipboard 
Print this post

I did, but unfortunately had no luck with it...

http://rittle.org

--------------
 
     Page 1 of 4    
Print this page
© JAQ Software 2024