[AVR] How to generate code for graphic on a GLCD?

Status
Not open for further replies.

abdi110

Member level 3
Joined
Mar 5, 2015
Messages
60
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Visit site
Activity points
1,728
I use codevision, I am going to use a graphical LCD in my project. I don't know how to build codes for any simple graphic symbol on the LCD.
Some texts advise using a software named "GLCD TOOLS".
Could any one please help on this?
 

Hello!

What do you mean exactly? You have a picture and you want a bitmap / pixmap as a C array?

Dora
 

There are several graphic display controller chipsets with different modes, and thus different routines. What is the model/manufacturer of the module that you are using?
 

Hello!

I want to make some symbols myself and show them on LCD.

It's a 2-pass process.
1. You make your data with a PC
2. You draw your icons / images with a microcontroller.

Do I understand correctly that you are interested in (1), making the data itself?
Then if you have the data, you can display it, right?

For example, if you get this small 8-pixel ball:
const char ball[] = {0x3C, 0x7E, 0xFF, 0xFF, 0xFF, 0xFF, 0x7E, 0x3C};
you are able to display it on your LCD, right?

Or do you want source code for the LCD itself?

For creating the data itself, I use Graphic Converter on MacIntosh. There is a possibility
of exporting any image to C code.

Now for color LCDs, I usually use RGB565 color which is more compact and which is
basically the same, at least to my eyes and for simple GUIs.
Then you have to make a program translating RGBA32 bit to RGB565. This is quite easy
and I wouldn't be surprised that it already exists, possibly as a part (plugin) of another
software.

Dora.
 
Dear Dora.
I want the microcontroller draw symbols on the graphic LCD so I need to know the data for example to draw a symbol for "Moon" or " Sun" or "Snow" and etc.
Therfore I need to know which pixcells should be shown.
I hope I could clear my problem.
 

I want the microcontroller draw symbols on the graphic LCD so I need to know the data for example to draw a symbol for "Moon" or " Sun" or "Snow" and etc.
Therfore I need to know which pixcells should be shown.
Sounds like you already manage to show specific pixels on your graphic LCD, in other words are able to configure it and write to the display buffer. Is this correct?

If so, you would also know how the display memory is organized, if your display shows one byte in a row or in a column, starting with MSB or LSB etc. Display chips are different in this regard. You have been asked for the GLCD manufaturer and type, information still pending.

You can basically sketch your symbols on quadrille paper and determine in the individual data bytes to be written to the display buffer. Or use a converter tool like the said GLCD tools to generate a C array from a bitmap file.
 

Dear FvM,
Actually I have not started the project yet so I didn't have any graphic LCD to mention the manufacturer.
I am going to increase my knowledge about the different parts of the project including the graphic LCD.
As I mentioned before I studied in some texts that they use GLCD TOOLS and I just asked if any body has any information about that.
This is my first project with graphic LCD 's and I just had some studies and not any experience about that.
I will appreciate if someone tells me more about GLCD TOOLS. If it is a free ware? And if yes where can I download it?
Thanks
 
Last edited:

Ok, this feature is not available at all versions, but with the advanced.
You need contact some local CodeVisionAVR distributor to request quotation.
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…