Page 1 of 1

GLK24064-25 Draw Bitmap from Memory

Posted: Wed Feb 05, 2020 11:56 am
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,

Re: GLK24064-25 Draw Bitmap from Memory

Posted: Wed Feb 05, 2020 12:21 pm
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,

Re: GLK24064-25 Draw Bitmap from Memory

Posted: Thu Feb 06, 2020 12:59 pm
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,