Important alert: (current site time 7/15/2013 6:45:02 PM EDT)
 

winzip icon

LED Display

Email
Submitted on: 4/9/2000 2:03:15 AM
By: Utpal Parrikar  
Level: Beginner
User Rating: By 10 Users
Compatibility: C
Views: 26249
 
     This code sets Parallel Port i.e. Printer Port so as to light up LED(Light Emmiting Diode) connected to printer port,number of times..
 

INCLUDE files:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//**************************************
//INCLUDE files for :LED Display
//**************************************
conio.h
stdio.h
ctype.h
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

4/10/2000 1:10:00 AMneo matrix

where did you get your
(If this comment was disrespectful, please report it.)

 
4/10/2000 1:12:52 AMneo matrix

sorry 'bout that here is the whole message.

where did you get your "conio.h" please send me a copy. ewapato@hotmail.com
thank you
(If this comment was disrespectful, please report it.)

 
4/13/2000 11:27:14 AMUtpal Parrikar(Author)

I got conio.h from my C/C Compiler
(If this comment was disrespectful, please report it.)

 
5/16/2000 5:01:53 AMRenzan

I cannot get your code to work, i compiles just fine using both MSVS and Borland. But it does not seem to do anything.... Maby I got the LED connected the wrong way, please help!
(If this comment was disrespectful, please report it.)

 
12/16/2000 9:22:32 PMFrank

I was wondering what compiler you used to build this program. My compiler apparently does not have the proper conio header file needed to use the parallel port command. I'm using Borland 5.0 Please help me if you can. thank you
(If this comment was disrespectful, please report it.)

 
12/16/2000 9:24:32 PMFrank

I was wondering which compiler you used when you built your program.

I don't think that the conio header file included with my compiler has the capacity to use the code which you provided.

Thank you for you help, I realy need to be able to do this for a school project :)
(If this comment was disrespectful, please report it.)

 
7/6/2001 6:33:33 PMMiah

Umm, to all you people that say
(If this comment was disrespectful, please report it.)

 
7/6/2001 6:35:01 PMJeremiah Molinaro

Oops i guess my message got cut off to. You people that think you have the wrong conio.h file should use _outp(); instead of outport();
(If this comment was disrespectful, please report it.)

 
4/28/2002 5:23:58 PMi hendry

Will it work in Windows 2000 or XP
(If this comment was disrespectful, please report it.)

 
7/18/2002 8:40:23 AMBurnin' Flame

I have Windows Xp and i tried your code, but it is not working. It gives me a fatal error, and asks me to send an error report to M$.
(If this comment was disrespectful, please report it.)

 
4/12/2003 12:09:02 AM

When I run my program I made it gives me an error and shuts down just like "Burnin' Flame"

What do I do?
My code is triggered by a button on a dialog box and is:
_outp(0x378,1)
and my LED is hooked up right (My dad checked it).
(If this comment was disrespectful, please report it.)

 
4/12/2003 12:11:45 AM

HAHAHAHAHA I just got it to work but only on my older computer 486. Is there a way I can get it to work on my new computer? Maybe cause my new one has XP and my old one is 98.
(If this comment was disrespectful, please report it.)

 
4/12/2003 1:06:44 AM

Windows XP does not allow you to send information directly to the IO port for security reasons. Is there a way to go around this?
(If this comment was disrespectful, please report it.)

 
6/6/2003 11:49:57 PMshall

I think you have on login as administrator on XP to use this code.
try....it
(If this comment was disrespectful, please report it.)

 
10/7/2004 4:56:38 PM

hello Sirs
Can sombody help me with this issue i tried to compile the file but the next error appears;

[C++ Error] File1.cpp(26): E2268 Call to undefined function 'output'
I.m using Borland C++ 6.0
(If this comment was disrespectful, please report it.)

 
2/26/2006 6:34:03 PMi hendry

Parallel port access in Windows Nt, 2000 or XP . Go to http://www.beyondlogic.org/porttalk/porttalk.htm
for an explanation of what is required
(If this comment was disrespectful, please report it.)

 
11/7/2006 8:49:36 AMolive

you should get a file named inpout32.dll and inpout32.lib so that it would run in windows xp or nt versions...
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.