Click here to Skip to main content
15,881,882 members
Articles / Desktop Programming / MFC
Article

Crystall Motion

Rate me:
Please Sign up or sign in to vote.
1.05/5 (7 votes)
17 Jun 20041 min read 29.1K   846   7   2
Control LCD connected to parallel port

Sample Image - CrystallMotion.gif

Introduction

this aricle uses:
1. Comunicating with parallel port
2. Serialization using binary and soap
3. DLL working
4. Dynamic Arrays
5. GUI
6. String Parsing.
7. System DateTime
8. Win_32 Classes (Win32_Processor, Win32_OperatingSystem, Win32_LogicalDisk, ...)

It uses the inpout32.dll to send data to parallel port.
This project has two sections first is lcd_Class. this class Parse any string that given to its properties and other values such as scrolling and wips and...
then send them to LCD.
This class can used with 1x8 .... 2x40 LCDs.

IT also can show you the system free and total memory, free and total space on each hadrdrive partition,
date and time in any formats, os version and name, cpu speed and manufacturer,
and can caculate the percent of given nembers (ex. percent free mem or hard drive) and show that in a prgress bar on your LCD.

for example if u send this string to the class:
Free space on C: $FREESPACE(C) ($FREESPACE%(C))
Free memory: $FREEMEMORY() (%PERCENT($FREEMEMORY(),$TOTALMEMORY())
LCD Shows:
Free space on C: 1.7GB (12%)
Free memory 246MB (45%)

Second is Gui and user interface, at this time this only designed for 2x16 LCDs but simply can cheanged to use with other models.
This part using Serialization to save lcd_Data in two forms Binary and Soap.
It also used bitwise operands to check witch line must be scroll for example.

If u want some information to build your own LCD. It's very simple with a little knowledge about electronics.

See this pages for wirings:
http://www.icehw.net
or
http://www.ocinside.de

Enjoy! Enjoy!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Iran (Islamic Republic of) Iran (Islamic Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionMore detail? Pin
Joel Holdsworth19-Jun-04 9:22
Joel Holdsworth19-Jun-04 9:22 
Generalintroduce, explain Pin
Ellery_Familia18-Jun-04 14:46
Ellery_Familia18-Jun-04 14:46 
explain a little better what your article is about...

"If u want some information to build your own LCD. It's very simple with a little knowledge about electronics."

I find that hard to believe.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.