LCDInfo.com

http://www.lcdinfo.com
It is currently Fri Nov 22, 2024 5:45

All times are UTC + 2 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Apr 24, 2003 15:29 
Offline

Joined: Thu Apr 24, 2003 13:30
Posts: 7
Hi!
I 've searched everywhere within this board, but the only thing i found referring to KS0108 was some C++ Code I didn't understand.
In WriteCommand it says:
SetPortVal(Control, Eneble_LO | CS | RS_LO,1)

Control is BASE + 2 i think, but what is Enable_LO, CS und RS_LO??

Cann somebody translate this at least to DlPortWritePortUshort?
Thanks a lot!
btw i used the classic wiring!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 25, 2003 20:14 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
This source should help you although it uses the WinIO driver:
http://www.skippari.net/lcd/sekalaista/ ... lights.zip

And do you have some specific reason to use DLPortIO as I think WinIO is usually better ?

Here is the same thing using both drivers:
DlPortWritePortUshort(CONTROL, CDLO | WRLO | RDHI | CEHI);
SetPortVal(CONTROL, CDLO | WRLO | RDHI | CEHI, 1);


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 26, 2003 20:40 
Offline

Joined: Thu Apr 24, 2003 13:30
Posts: 7
Thank you so far!
So my problem with that source was that there wasnt used DLPortIO but WinIO.
So.
Problem solved!
Thank you!

But next question:
What is WinIO and why do you prefer it?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 26, 2003 22:03 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
WinIO is a port driver like DLPortIO. You can find it here: http://www.internals.com/
I think there was some VB examples included.

I like WinIO because I haven't had problems with it like I have had with DLPortIO and it has been faster for me.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 27, 2003 14:12 
Offline

Joined: Thu Apr 24, 2003 13:30
Posts: 7
Ok, thank you!
By the way I stopped developping in VB and changed to C++.
Its Great!
At the Moment I have a SetPixel and ClearPixel Method for my KS0108.
Now I'm working on an ICON method, to place any bitmap anywhere on screen.

So I'll check out WinIO.
Thanks


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

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 11 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:  
Powered by phpBB® Forum Software © phpBB Group