| Sets an electrical level from the select pin of curren LPT's D25 connector.
|
Language
|
Description
|
C/C++
|
void SetPin(HANDLE hLpt, UCHAR nPin, UCHAR nNewValue);
|
Delphi
|
procedure SetPin ( hLpt : THANDLE, nPin : Byte, nNewValue: Byte ) ; stdcall
|
VB
|
Sub SetPin ( ByVal hLpt As Long, ByVal nPin As Byte, ByVal nNewValue As Byte )
|
Parameters:
hLpt - the handle returned by a successful call to OpenRapidLpt
nPin - requested pin number (1..25)
nNewValue - set it to zero if desired electrical level on pin is LOW, non-zero if HIGH.
Return Value :
None.
Comments:
The current LPT must be in write mode:
SetReadMode(0)
Not all pins are accessible for this operation. Read LPT documentation for more info.
|