GLK19264-7T-1U color parameter problem

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

Moderators: Henry, Mods

Post Reply
dor
LCD!
Posts: 10
Joined: Wed Aug 12, 2009 1:33 pm

GLK19264-7T-1U color parameter problem

Post by dor »

Helllo,

I'm using the GLK19264-7T-1U device.
It works great. But I have noticed that some commands do not get executed.

For example, when I send a command that draws a rectangle with a specified color parameter (0 or 1 = white or black, respectively) - the command isn't being executed. I don't see a rectangle after issuing that commands. I tried both colors.
The same applies to the "Set Drawing Color" command - the color isn't changing.

I can send other commands, though.
For example, I can write ASCII characters. I can draw a pixel or a line (notice that these commands do not include the color parameter). I can set the cursor position & coordinates.

That's why I think that there's a problem with the color parameter.
What should I do?

I'm communicating via RS232 in TTL levels.

Thank you!

Best regards,
Dor.
Raquel
Matrix Orbital
Matrix Orbital
Posts: 834
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

Post by Raquel »

Hi dor,

Thank you for posting on the forum.

Can you please indicate the exact command you are using?
For example 254 114 255 0 0 10 10
this draws a black rectangle at 0,0 10,10.
Raquel Malinis
Design and Development
Matrix Orbital
dor
LCD!
Posts: 10
Joined: Wed Aug 12, 2009 1:33 pm

Post by dor »

Hi Raquel,

I'm sending the command "Draw a Rectangle" as follows ("0x" indicates hexadecimal values; those are separated by space):

Code: Select all

0xFE 0x72 0 0 0 50 50
And, the "Set Drawing Color" command:

Code: Select all

0xFE 0x63 0
Those two aforementioned commands do not executed, as far as I can see.

Other commands like "Set Brightness" and "Set Contrast" work well, though.

Regards,
Dor.
Ray
Matrix Orbital
Matrix Orbital
Posts: 745
Joined: Thu Dec 13, 2001 4:00 pm
Location: Earth.... I think..
Contact:

Post by Ray »

Could you try drawing a rectangle using from mogd# does it display properly then?
Raquel
Matrix Orbital
Matrix Orbital
Posts: 834
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

Post by Raquel »

Hi Dor,

In order to see the effect of 0xFE 0x72 0 0 0 50 50, which is the command to draw a white rectangle from 0,0 to 50,50, you will need to have a black background first. So, you might want to issue command 0xFE 0x78 255 0 0 192 64 which will draw a full black rectangle. If you then issue the 0xFE 0x72 command, then you should see the rectangle drawn.

The command 0xFE 0x63 which is the Set Drawing Colour command only affects commands that are sent after it (it will not affect the lines / rects that are already drawn on the screen), also, it only affects those commands that do not include the colour as command parameter (eg line and pixel commands).
Raquel Malinis
Design and Development
Matrix Orbital
dor
LCD!
Posts: 10
Joined: Wed Aug 12, 2009 1:33 pm

Post by dor »

Hi Ray,

I would be able to try that later because of some technical reasons.

Hi Raquel,

I think that I already have a black background.
I also tried to draw a black rectangle (command 0xfe 0x72) but it didn't work either.

Am I required to draw a solid rectangle with an opposite color anyway?
The command 0xFE 0x63 which is the Set Drawing Colour command only affects commands that are sent after it (it will not affect the lines / rects that are already drawn on the screen), also, it only affects those commands that do not include the colour as command parameter (eg line and pixel commands).
Indeed, I know. I sent the Set Drawing Color command before sending the Drawing a Line or Draw Pixel commands. But it didn't affect the color of the line/pixel. (the color stayed white)

Regards,
Dor.
Raquel
Matrix Orbital
Matrix Orbital
Posts: 834
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

Post by Raquel »

Hi Dor,

You might want to try to put the display back to RS232 and test with mogd# as per Ray's suggestion.

I have tried one GLK19264-7T-1U here and it is working as expected using mogd#, or using plain scripting using uProject's Add Raw Data command.

0xFE 0x78 0xFF 0x00 0x00 0xC0 0x3F (black filled rect at 0,0 192,63)
0xFE 0x72 0x00 0x00 0x00 0x32 0x32 (white rect at 0,0 50,50)

Let me know how it turns out.
Raquel Malinis
Design and Development
Matrix Orbital
Post Reply