Code archives/Miscellaneous/I/O Ports, Parallel Port

This code has been declared by its author to be Public Domain code.

Download source code

I/O Ports, Parallel Port by Wayne2005
Control your I/O ports with B3d.
Inpout32.dll for WIN 98/NT/2000/XP

1. get the dll
2. put the dll into your windows system directory
3. create the InpOut32.decls in your userlibs
4. test the sample b3d code shown below
5. party

-enjoy
; Parallel Port I/O made easy.

; Inpout32.dll for WIN 98/NT/2000/XP
; Get binary, source, and other info here:

; http://www.logix4u.net/inpout32.htm

-----------------------------------------------
InpOut32.decls:

.lib "inpout32.dll"

Inp32%( port% )
Out32 ( port%, value% )

-----------------------------------------------

; B3D Parallel Port I/O

Global	Lpt1= $378

Graphics 800,600,16,2
SetBuffer BackBuffer()

; Output data
Out32(Lpt1,1)

; Read port status
DebugLog Bin$(Inp32(Lpt1))
	
While Not KeyHit(1)
Wend

End

Comments

Chevron2006
Thanks a lot for sharing this, works a treat


Wayne2006
welcome


JI2009
Thank you,

JI


Code Archives Forum