![]() |
| | #1 |
| Registered User Join Date: Jan 2005
Posts: 30
| Parallel Port! Detect incoming current, posible? I have little knowledge about parallel port programming on Linux. I wan't to know if its possible to like 'listen' if the current is incoming into data pin? What I need is forexample I have two wires, one from Data pin 1 and other from ground, if I put them together some function will return for example 1 else 0! Does anybody know something about this function!? I think its called inb(); Thanx! |
| hyaku_ is offline | |
| | #2 |
| 'AlHamdulillah Join Date: Feb 2003
Posts: 790
| what you are going to need to do is "poll" the pins. This can be done in multiple ways, but if you want the simplest, just go with a while loop that reads data from those pins, then calls/does something when you recieve certain results.
__________________ there used to be something here, but not anymore |
| EvBladeRunnervE is offline | |
| | #3 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,710
| |
| Salem is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Immediate programming help! Please! | xMEGANx | C++ Programming | 6 | 02-20-2008 12:52 PM |
| brace-enclosed error | jdc18 | C++ Programming | 53 | 05-03-2007 05:49 PM |
| Segmentation Fault - Trying to access parallel port | tvsinesperanto | C Programming | 3 | 05-24-2006 03:28 AM |
| Problem with simple case statements | shoobsie | C Programming | 2 | 05-08-2006 08:39 AM |
| linked list recursive function spaghetti | ... | C++ Programming | 4 | 09-02-2003 02:53 PM |