Hi Everyone,
Several days ago i started a commercial project which uses a 128x64 KS108 based GLCD. I started to write some code for make the GLCD alive by using "GLCD.c" driver which comes with CCS. (This is the first time that I'm using 128x64 GLCD

). It worked great on my hardware without any problems but original driver file had really limited ready to use functions in it.

So I decided to add some new functions and make a new library for my project. After a sleepless night + 4 mug of coffee, I've added 5 new functions and I wanted to share it with you...
I hope this new Library also helps you on your projects...Feel free to use it

Here are the functions added by me:
============================================================
Turns ON-OFF graphic LCD. Good solution on system standby
GLCD does not clear its memory map on OFF command. So last
screen shows up when ON command send to GLCD
- glcd_3Dbox(x,y,width,height,depth,color)
Draws a 3D box on a graphic LCD (Ex: to make a 3D Button)
- glcd_circle_seg(x,y,radius,angle_start,angle_end,color)
Draws a segment of a circle on a graphic LCD
Fills the graphic LCD screen with 128x64 bit converted image
with inverse option
- glcd_image_xy(x,y,inverse)
Draws less or equal 128x64 pixels of image to the graphic LCD
screen on specified x, y coordinate with inverse option
============================================================
You can find detailed descriptions and "How To Use" information's above the related functions...
I'm also adding a Test Program which demonstrates each function on GLCD. Hardware based on 18F4520 with 10Mhz Xtal (HW enabled 4X PLL - H4 fuse used).
You can see my PIN connections at the pin definition section in my "Extended_GCD.c" library. You also can use your own connections...
Have a nice programming days...
SAINT
! Info: I used "Bitmap2LCD BASIC Edition V1.5b" to convert the images. Basic version of this program is free at
http://bitmap2lcd.comWhen you select the Bitmap or JPEG image in the program, choose "Table vertical downwards" and "Most significant bit last" from "File & Encoder Manager" toolbar at the right of your screen...
! RAR File Edited: Related BMP images added to the RAR archive...