LCDInfo.com

http://www.lcdinfo.com
It is currently Fri Mar 29, 2024 17:26

All times are UTC + 2 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Mar 01, 2006 11:26 
Offline

Joined: Wed Mar 01, 2006 11:19
Posts: 2
Location: Helsinki Finland
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 07, 2006 22:42 
Offline

Joined: Wed Mar 01, 2006 11:19
Posts: 2
Location: Helsinki Finland
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..


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 11:08 
Offline

Joined: Mon Jun 20, 2005 23:03
Posts: 161
Location: Hong Kong
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.

_________________
myLCD - An LCD framebuffer library
(KS0108, PCD8544, SED1565, SED1335,
Nokia Colour LCD's, T6963C, TCP/IP, etc..)
http://mylcd.sourceforge.net/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group