Hello Guest it is December 14, 2024, 11:24:30 AM

Author Topic: Parallel Port 2 Pin Status  (Read 5761 times)

0 Members and 1 Guest are viewing this topic.

Parallel Port 2 Pin Status
« on: October 12, 2009, 12:05:56 AM »
Are there OEM LED codes for monitoring the pin status of a second parallel port? Where might I find the codes? I would like to add a parallel port 2 pin status to a diagnostics screen like the one that exists presently for port1

Thanks
Sam

Offline Mattw

*
  •  41 41
Re: Parallel Port 2 Pin Status
« Reply #1 on: December 29, 2009, 10:23:34 PM »
I too would like to know this, but here is what I did to get around it.

When you assign a particular pin to an output or input in Ports and Pins, you can use the macropump to evaluate the IsOutputActive() or IsActive() and then SetUserLED() accordingly.

Here is a sample from my macropump...

'Spare output 7
If IsOutputActive(Output7) Then
   SetUserLED(1000,1)
Else
   SetUserLED(1000,0)   
End If