Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i have a little problem in my project

my program was coded in .net 2012 and the idea was when i press a number its has a sound with it ,means number 1 have an error sound when i press it number 2 have and accept sound when i press it so far every think is ok now i want to control a parallel port so if number 1 pressed the Red LED is on and if number 2 pressed the Green LED is on

any ideas or Links that can leads me there !! thanks
my OS is Windows 8.1
Posted
Comments
Sergey Alexandrovich Kryukov 12-Nov-15 10:19am    
What have you tried so far?
—SA

You do NOT want to attach LEDs directly to the parallel port. There are projects out there that will tell you you can get away with it, but you risk blowing up the port if you're not careful and with some ports, it won't work at all.

It's possible to do but I recommended against it. See this article[^] for the discussion on how to do it.

I STRONGLY recommend you use an interface board, like a Phidgets InterfaceKit[^] board. If you blow something up, it's much cheaper to replace one of these than it is to replace your motherboard.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 12-Nov-15 10:33am    
Sure, a 5.
—SA
Please see my comment to the question. You don't even need to go far: http://www.codeproject.com/search.aspx?q=control+parallel+port&doctypeid=1[^].

As you can see, the first found item is even about controlling LED through a parallel port.

The only possible problem is: many article you find will be about native-code programming, such as with C/C++, not for .NET. In this case, don't be discouraged; you can always use P/Invoke, and probably you can find .NET samples, which you can write yourself anyway.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900