GLK24064-25 Draw Bitmap from Memory

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

Moderators: Henry, Mods

Post Reply
blackquetzal
LCD?
Posts: 2
Joined: Wed Feb 05, 2020 11:33 am

GLK24064-25 Draw Bitmap from Memory

Post by blackquetzal »

Hello,

I've been having this issue for a week now, and haven't found an answer in the forums. So I'd like some light in the matter.

I am using MOGD# to script the following to the display (Draw a Bitmap from Memory)
254 98 1 0 0

But the display does not show the stored bitmap, and the next command sent to the display is not recognized as command but as Text.

For example,
If I script the command 254 98 1 0 0 it does nothing on the display, and then in the same MOGD# in drawings -> Graphics-> Click on Draw Bitmap
It starts showing a '6' character in the screen.

I've never seen this behaviour before, I've been using these displays for over ten years. I've always used the same command to show the bitmap.

Regards,

blackquetzal
LCD?
Posts: 2
Joined: Wed Feb 05, 2020 11:33 am

Re: GLK24064-25 Draw Bitmap from Memory

Post by blackquetzal »

So, after posting the problem I've found the solution.

Talk about Rubber duck debugging...

So here's the deal. The manual states that the bitmap ID has been changed from Byte to Short. So, now there are 2 bytes for an ID, further still the manual says that the short value is in little endian.

The correct command is this (for the bitmap with ID 1)

254 98 1 0 0 0

The short value (now 2 bytes), IS in big endian.

Thats it. I just felt to post the answer in case that someone is updating a ten year old Matrix Orbital code.

Cheers,

Raquel
Matrix Orbital
Matrix Orbital
Posts: 735
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

Re: GLK24064-25 Draw Bitmap from Memory

Post by Raquel »

Hello blackquetzal,

Thank you for posting on the forum.

I am glad to hear that you are enjoying your GLK24064-25 for ten years now :)
Yes, we have updated the firmware and introduced the 2 byte (short) ID parameter for fonts and bitmap IDs since version 8.1 (we are now at v8.6)
Kindly please check out this PCN to find out more about this change:
https://www.matrixorbital.com/index.php ... et&did=620

Best Regards,
Raquel Malinis
Design and Development
Matrix Orbital

Post Reply