[bb] I/O Ports, Parallel Port by Wayne [ 1+ years ago ]

Started by BlitzBot, June 29, 2017, 00:28:43

Previous topic - Next topic

BlitzBot

Title : I/O Ports, Parallel Port
Author : Wayne
Posted : 1+ years ago

Description : 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


Code :
Code (blitzbasic) Select
; 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 :


Chevron(Posted 1+ years ago)

 Thanks a lot for sharing this, works a treat


Wayne(Posted 1+ years ago)

 welcome


JI(Posted 1+ years ago)

 Thank you, JI