Re: Programming Parallel Port

mankind_at_work.com
Date: 07/17/04


Date: Sat, 17 Jul 2004 22:06:13 +1200

On Sat, 17 Jul 2004 21:41:47 +1200, mankind@work.com wrote:

>Further to my reply under messages "PC based Measurements"
>here is a sample of code to write to the P.Port using 'io.dll' and Purebasic.
>
>1 PortNum.l = $378 ; LPT1
>2
>3;- (check library file open)
>4 LibOpen.l = OpenLibrary(1,"io.dll")
>5 If LibOpen = 0
>6 End
>7 EndIf
>8
>9 CallFunction(1,"PortOut", PortNum,$080) ; write 80h to port 378h
>10 End
>
and I forgot to sign my msg
Kevin T


Quantcast