My first graphic LCD test

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

specialk
LCD Guru
Posts: 75
Joined: Mon Jan 14, 2002 4:00 pm

Post by specialk »

Here's a little movie of my first attempt at a graphic lcd program :razz:
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]

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

pelase don't tell my I have to upgrame my WMP to watch this...
Henry J.
President
Matrix Orbital

specialk
LCD Guru
Posts: 75
Joined: Mon Jan 14, 2002 4:00 pm

Post by specialk »

Ohh dear... let me encode that into DiVX...
And a huge THANK YOU to Henry! :smile:

-special [k]

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

that's pretty damn nice...
Henry J.
President
Matrix Orbital

specialk
LCD Guru
Posts: 75
Joined: Mon Jan 14, 2002 4:00 pm

Post 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]

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

your going to have to use the hardware pixil scroll feature on theat next to make it really smooooooooth
Henry J.
President
Matrix Orbital

specialk
LCD Guru
Posts: 75
Joined: Mon Jan 14, 2002 4:00 pm

Post by specialk »

There is a hardware pixel scroll?!?!? *GASP* :eek:
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]

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post 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
Henry J.
President
Matrix Orbital

Cheese
Bit-Tech.net
Bit-Tech.net
Posts: 337
Joined: Thu Dec 06, 2001 4:00 pm
Location: Cambridge, UK
Contact:

Post by Cheese »

Oww... I can't watch the video :sad: Says you've exceeded your bandwidth...

I was looking forward to it too :sad:

r.

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post 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>

specialk
LCD Guru
Posts: 75
Joined: Mon Jan 14, 2002 4:00 pm

Post 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 :sad:

-special [k]

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

e-mail it to me.. henryj@matrixorbital.com and I'll host it...
Henry J.
President
Matrix Orbital

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3014
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

Henry J.
President
Matrix Orbital

Cheese
Bit-Tech.net
Bit-Tech.net
Posts: 337
Joined: Thu Dec 06, 2001 4:00 pm
Location: Cambridge, UK
Contact:

Post by Cheese »

Thanks Henry... looking good speicalk :grin:

Cheers,

r.

specialk
LCD Guru
Posts: 75
Joined: Mon Jan 14, 2002 4:00 pm

Post 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]

Post Reply