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.
GLK19264-7T-1U color parameter problem
Hi Raquel,
I'm sending the command "Draw a Rectangle" as follows ("0x" indicates hexadecimal values; those are separated by space):
And, the "Set Drawing Color" command:
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.
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
Code: Select all
0xFE 0x63 0
Other commands like "Set Brightness" and "Set Contrast" work well, though.
Regards,
Dor.
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).
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
Design and Development
Matrix Orbital
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?
Regards,
Dor.
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?
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)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).
Regards,
Dor.
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.
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
Design and Development
Matrix Orbital