Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

kso108 based glcd library required

Status
Not open for further replies.

vishu489

Advanced Member level 4
Joined
Aug 28, 2011
Messages
116
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
2,120
hey i want to interface atmega16 with jhd12864e
please suggest proper library with full explanation and also circuit diagram
 

THYANK YOU

are you sure it is suitable for atmega16?
 

Yes, it works in any AVR, all you have to do is change the port pins defined in the header file to match the ones you use in your schematic.

Alex
 

hi alex

will you please give me a link or any document which can explain this library in detail and also i don't know how to make project by using this lib
 
There is an example code in the zip file, you can use it as a starting point and experiment.
You can also read the arduino link tutorial , I don't have any other resources.
Note that if you try to simulate the result in proteus you may see wrong data in the screen because the screen model is not operating properly.

Alex
 

hi alex
i want to display running text on glcd plz help me
 

I haven't done anything similar and there is no such function in the library so the only way I can think of is to rewrite the data is shifted coordinates but you are probably going to see flickering.

Alex
 

hi alex
i'm trying to develop my own glcd library .below i have posted my code.plz help me in writing function to display string.
 

Attachments

  • glcd.txt
    2.2 KB · Views: 78

You can look at the functions of the library I gave you and modify them

Alex
 

actually i already looked that but can,t understand. will u plz explain me function step by step and sorry for my poor english
 

This is the function in the above library


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
void ks0108Puts(char* str) {
    int x = ks0108Coord.x;
    while(*str != 0) {
        if(*str == '\n') {
            ks0108GotoXY(x, ks0108Coord.y+ks0108FontRead(ks0108Font+FONT_HEIGHT));
        } else {
            ks0108PutChar(*str);
        }
        str++;
    }
}



All it does is receive a pointer to an array of char and loop all the array members.


Code C - [expand]
1
2
3
4
while(*str != 0)  // this is true until the pointer reaches the end of the array and finds a null character 
if(*str == '\n')  // this is true is there is a new line character so the function uses ks0108GotoXY to change line
ks0108PutChar(*str); // this shows the character at the pointer position by calling the function that displays a char
str++ // and this moves the pointer address to the next char of the array



Alex
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top