LCDInfo.com
http://forum.lcdinfo.com/

KS0108 c routines for atmel/codevisionavr..
http://forum.lcdinfo.com/viewtopic.php?f=9&t=1498
Page 1 of 1

Author:  mikemotors [ Wed Mar 01, 2006 11:26 ]
Post subject:  KS0108 c routines for atmel/codevisionavr..

Anyone want to share some basic c routines; clear,write lcd etc..
I found some Henri's examples, but those need pretty much work for codevision..

Setup, atmega128 + ks0108/128x64 display.

Author:  mikemotors [ Tue Mar 07, 2006 22:42 ]
Post subject: 

I got the basic routines running after few hours, but now i'm strugling with a bigger problem. Found out that it's not wice to refresh whole screen all the time if only some areas of the screen has updated pixels (flashing screen).
I found some examples from other topics, screen plotting.. Should i use some kind of buffer which has the screen information on it and read and compare the bits directly from the ks0108 ram and update only needed information?

Didn't understand the 'C programmin 4 fun' topics idea of plotting.. Ks0108's way to divide the screen into two 64x64 plots and use 8 vertical bits is quite hard to accept after doing some little things with T6963C..

Author:  Michael [ Wed Mar 08, 2006 11:08 ]
Post subject: 

mikemotors wrote:
I got the basic routines running after few hours, but now i'm strugling with a bigger problem. Found out that it's not wice to refresh whole screen all the time if only some areas of the screen has updated pixels (flashing screen).
I found some examples from other topics, screen plotting.. Should i use some kind of buffer which has the screen information on it and read and compare the bits directly from the ks0108 ram and update only needed information?


Yes, thats exactly how it should be done.
Have a look at the myLCD KS0108 driver for an optimized example of this.

Page 1 of 1 All times are UTC + 2 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/