Page 1 of 2

Graphics and LCDC...

Posted: Sat Jan 11, 2003 11:46 am
by [PCA]Matthoulb
Ok how do i use LCDC to bring up graphics to the screen? (i have a GLK12232 by the way). Currently i load them to the LCD using MOGD then call them using the [##254][##98][##2][##0][##0] command (i think that's it anyway) and when i do this and the graphic is say a full screen one i get problems... ie. it flashes when the display refreshes.

I am entering this into the first line on an LCDC screen... is this right?


Please help!
Thanks

Posted: Mon Jan 13, 2003 12:20 pm
by Ndtinker
That's funny - I was just about to post the exact same question. I have the same screen, too.

Posted: Tue Jan 14, 2003 10:21 pm
by TAG
i have the same screen and i havent even got to that yet, the thing freezes after like 20secs in lcdc .... It wont load fonts correctly using the initfont commands setup in lcdc either ...
Hope i can fix that freezing fast !!!

Posted: Wed Jan 15, 2003 3:26 am
by Mat-Moo
You need to use the "Line Alignment" "Non-Skip line" or it will try and draw spaces over it.

Posted: Wed Jan 15, 2003 3:30 am
by Mat-Moo
BTW try http://lcdc.planetdps.com/downloads/other/LCDG-mmm.zip for uplading font/graphics to your screen :) much better then Mogd imo (but I wrote it!) I've not had any issues with freezing though - do you have the correct definition file in there as it uses flow control to talk to the screen. If this is turned off it can cause problems.

Posted: Wed Jan 15, 2003 5:25 am
by TAG
yep im using the correct definition file ....
And only tried turning flow control off to test if it would be the same problem as on my noritake VFD .... but flow control is hardware on that one while its software on the MO ....
could it be my serial controller that has a problem ?
I'm using an MSI K7T266Pro2-RU running WinXP pro

Posted: Wed Jan 15, 2003 6:11 am
by TAG
mat-d-rat wrote:You need to use the "Line Alignment" "Non-Skip line" or it will try and draw spaces over it.
what are those two settings ? where do i set them ?

Also about the backlight off not working ... just noticed if i use "DSP->Process commands" and then BacklightOff it doesnt work. While using "DSP->Backlightoff" it works .... I really dont understand whats going wrong here

Posted: Wed Jan 15, 2003 6:17 am
by TAG
Nevermind found the setting
Dunno what i did but now my display aint writing down any of my screen data :(
:-?

Posted: Wed Jan 15, 2003 6:36 am
by TAG
OK just being dumb right now ... though that skip line was 4 me ... obviously is for the guy asking on how to display graphs ...
Thought it was 4 me since my display suddenly started skipping a line displaying my line 4 data on line 3 ... That actually seemed to be due to my trying to upload fonts w/ lcdg-mmm .... reuploaded the fonts w/ mogd and it doesnt skip lines anymore .....
doesnt seem to freeze anymore either .... wtf went wrong i dunno
I'm still getting some weird stuff w/ bargraphs though .... Vertical Bars im using (on a 3line high graph) are not full columns horizontally ... each bar missed a pixel on the right hand side between every line ...also all bars are 5 pixels wide but the last 1 .... looks like theres a | seperator between each bar actually .... any idea ?
1 bar (just 2 caracters high .. data not big enough to fill 3 caracters height) could be represented like this:



**** top of bar (3rd line of display)
***** -------------
****
***** bottom of bar (4th line of display)
*****
*****
*****
*****
*****
*****


damned the thing just froze again :(

Posted: Wed Jan 15, 2003 12:04 pm
by Ndtinker
mat-d-rat wrote:You need to use the "Line Alignment" "Non-Skip line" or it will try and draw spaces over it.
I tried that but I might not be doing it right - the graphic I'm trying to use is full screen. (this one)
Image

When I display it, I put the code on the 1st line, and tell the other 3 lines to "skip this line" - that works fine, but the 1st line still blinks.

Now if I tell the 1st line to also be skipped, the graphic is skipped entirely and the next screen comes up.

Posted: Wed Jan 15, 2003 12:15 pm
by Mat-Moo
Put the first line as skip and put it in the "LINE COMMAND" part instead :)

Posted: Wed Jan 15, 2003 1:12 pm
by TAG
or u can draw the picture w/ an on b4 screen event and just dont draw anything w/ the screen ... thats what i used to do on my vfd, but using a caracter unknown to the display [##200] in place of every caracter displayable on the screen in the different lines .... that stopped lcdc from drawing spaces over the graph, could have just made it skip line.
So basically id try and draw it totally w/ an on b4 screen event ...

Posted: Wed Jan 15, 2003 4:55 pm
by [PCA]Matthoulb
How can i make it so that i can have graphics and text on the display at once?

Posted: Wed Jan 15, 2003 4:57 pm
by [PCA]Matthoulb
Also for when winamp starts to play i want it to bring up the winamp plugin (interupt the other screens), this i can do... but i want to have a momentry image there for 3 secs... this i can also do... however(!) when i stop winamp it doesn't carry on and unlock from the group... it just stays on the winamp screen.

Any ideas?

Posted: Wed Jan 15, 2003 11:50 pm
by TAG
[PCA]Matthoulb wrote:How can i make it so that i can have graphics and text on the display at once?
code the graphic in the event and the text in the screen ... u can also try and animate the graph u made from ur event by using the commands ur allowed for every line ....