Page 1 of 2
Posted: Wed Jan 30, 2002 5:29 pm
by specialk
Here's a little movie of my first attempt at a graphic lcd program
http://www.geocities.com/special_4k4/fi ... lcdfun.asf
Any comments/suggestions would be greatly appreciated (I'll u/l the source in a little bit...)
-special [k]
Posted: Wed Jan 30, 2002 5:30 pm
by Henry
pelase don't tell my I have to upgrame my WMP to watch this...
Posted: Wed Jan 30, 2002 5:33 pm
by specialk
Ohh dear... let me encode that into DiVX...
And a huge THANK YOU to Henry!
-special [k]
Posted: Wed Jan 30, 2002 5:35 pm
by Henry
that's pretty damn nice...
Posted: Wed Jan 30, 2002 5:40 pm
by specialk
As I said, just a first attempt, but I can see some seriously cool uses for this bad boy...
http://www.geocities.com/special_4k4/fi ... lcdfun.mpg
(not divx, but mpg is more universal)
-special [k]
Posted: Wed Jan 30, 2002 5:42 pm
by Henry
your going to have to use the hardware pixil scroll feature on theat next to make it really smooooooooth
Posted: Wed Jan 30, 2002 5:52 pm
by specialk
There is a hardware pixel scroll?!?!? *GASP*

What's the command/how would I use it? I've been reading through the documentation and although there is an auto-scroll feature, I'm not exactly sure how to use it...
-special [k]
Posted: Wed Jan 30, 2002 5:58 pm
by Henry
yes.. it's 0x99 and then the commands.. I'll get those for you... oly the -WBL and the -SM have this. The normal GLK12232-25 does not. That's why it's not documented...
http://www.matrixorbital.com/temp/pixel%20scrolling.MOV
http://www.matrixorbital.com/temp/pixel ... lling2.MOV
Posted: Wed Jan 30, 2002 6:04 pm
by Cheese
Oww... I can't watch the video

Says you've exceeded your bandwidth...
I was looking forward to it too
r.
Posted: Wed Jan 30, 2002 6:10 pm
by Henry
Line scrolling
Code: Select all
{
unsigned char val;
ZComm1->WriteCommByte(0xfe); //prefix
ZComm1->WriteCommByte(0x99); //comand
ZComm1->WriteCommByte(0x02); //line #2
ZComm1->WriteCommByte(122); //how many pixels to scroll
for (val = 1; val <= 122; val++)
{
ZComm1->WriteCommByte(~val);
}
}
And here is the code for val
Code: Select all
static unsigned char statval = 0;
unsigned char val;
val = statval;
switch (type)
{
case 1:
ZComm1->WriteCommByte(0xfe);
ZComm1->WriteCommByte(0x99);
ZComm1->WriteCommByte(0x00);
ZComm1->WriteCommByte(0x02);
ZComm1->WriteCommByte(~statval++);
ZComm1->WriteCommByte(~statval++);
break;
case 2:
ZComm1->WriteCommByte(0xfe);
ZComm1->WriteCommByte(0x99);
ZComm1->WriteCommByte(0x00);
ZComm1->WriteCommByte(0x01);
if (val >= :cool:
{
ZComm1->WriteCommByte(0xff);
val -= 8;
}
else
{
ZComm1->WriteCommByte(Fill[val]);
val = 0;
}
ZComm1->WriteCommByte(0xfe);
ZComm1->WriteCommByte(0x99);
ZComm1->WriteCommByte(0x01);
ZComm1->WriteCommByte(0x01);
if (val >= :cool:
{
ZComm1->WriteCommByte(0xff);
val -= 8;
}
else
{
ZComm1->WriteCommByte(Fill[val]);
val = 0;
}
ZComm1->WriteCommByte(0xfe);
ZComm1->WriteCommByte(0x99);
ZComm1->WriteCommByte(0x02);
ZComm1->WriteCommByte(0x01);
if (val >= :cool:
{
ZComm1->WriteCommByte(0xff);
val -= 8;
}
else
{
ZComm1->WriteCommByte(Fill[val]);
val = 0;
}
ZComm1->WriteCommByte(0xfe);
ZComm1->WriteCommByte(0x99);
ZComm1->WriteCommByte(0x03);
ZComm1->WriteCommByte(0x01);
if (val >= :cool:
{
ZComm1->WriteCommByte(0xff);
val -= 8;
}
else
{
ZComm1->WriteCommByte(Fill[val]);
val = 0;
}
if (statval > 31)
statval = 0;
else
statval++;
break;
}
}
Case 2 is timed counter x 2 and Case 3 is Whole screen I balive... it's a chunk of code from one of the test programs...
_________________
Henry J.
Technical Support
Matrix Orbital
<font size=-1>[ This Message was edited by: Henry on 2002-01-30 18:14 ]</font>
Posted: Wed Jan 30, 2002 6:10 pm
by specialk
Damn... Already??? Fudge monkey. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities. I hate geocities.
*sigh* but I'm too cheap for better hosting
-special [k]
Posted: Wed Jan 30, 2002 6:12 pm
by Henry
e-mail it to me..
henryj@matrixorbital.com and I'll host it...
Posted: Wed Jan 30, 2002 11:13 pm
by Henry
Posted: Thu Jan 31, 2002 1:43 am
by Cheese
Thanks Henry... looking good speicalk
Cheers,
r.
Posted: Thu Jan 31, 2002 7:09 pm
by specialk
Ok, just a test, but tell me if it works for you or not...
http://www.geocities.com/special_4k4/
-> My LCD Applications -> GraphicLCDWinamp.zip
Archive Password is "mo"
The bitmaps have to be uploaded with mogd.exe and make sure you turn off modg.exe before running the program. Please post if you have problems (which I WON'T be suprised if you did...)
-special [k]