creating bitmaps to upload

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

Moderators: Henry, Mods

Post Reply
Brett
LCD?
Posts: 2
Joined: Wed Aug 06, 2008 2:06 pm

creating bitmaps to upload

Post by Brett »

I have the GLK12232, rev 1.4.

I am controlling the display through a microcontroller, written in C. I have the protocol working correctly and is uploading the bitmap to memory. The issue, as I believe I gleamed from other posts, is in how the byte array is getting stored. I read somewhere that the rev 1.4 stores the bitmap data as vertical bytes from the image, instead of row bytes. Is this true? Is there any way to correctly encode an image so I can store it in ROM and load it?

Thanks,

Brett.
Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post by Clark »

Hi Brett,

You can check out the manual for that older revision unit here on our .ca site.

Looking at the font creation, you'll see that the older revision does indeed work in a vertical pattern rather than the horizontal used in the newer model. Changing the way the image is broken into bytes will result in an accurate duplication on the screen.

You can also check out MOGD to do the upload automatically. If you like, you can take a look at what data is going out the port with a program like portmon to replicate the transmission with your own code.

~Troy
Troy Clark
Design & Development
Matrix Orbital
Brett
LCD?
Posts: 2
Joined: Wed Aug 06, 2008 2:06 pm

Post by Brett »

Hey Troy,

The issue was not in the upload process, but in how to break down the image in that format. Standard programs, such as The Gimp, can export monochrome bitmaps, but they do it row major, which did not work.

What I ended up doing, is writing a program to emulate the LCD. I then used MOGD to upload an image to my program. The program will save the image file as a C style byte array, with constants declared for the size, width, height. I then just copied the file it saved into my C code and put it in ROM for upload.

Worked great! If you know of anyone else that would want to use that, let me know and I will gladly donate it to the cause.

Brett.
Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post by Clark »

Hi Brett,

Great to hear that you've found away to work around that column style upload issue, I'll keep your program in mind should other users post similar problems. It's excellent to have such generosity on the forums, thanks!

~Troy
Troy Clark
Design & Development
Matrix Orbital
Post Reply