November 18, 2017, 11:06:02 PM

Author Topic: [bb] I/O Ports, Parallel Port by Wayne [ 1+ years ago ]  (Read 174 times)

Offline BlitzBot

  • Newbie
  • *
  • Posts: 0
[bb] I/O Ports, Parallel Port by Wayne [ 1+ years ago ]
« on: June 29, 2017, 12:28:43 AM »
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
  1. ; Parallel Port I/O made easy.
  2.  
  3. ; Inpout32.dll for WIN 98/NT/2000/XP
  4. ; Get binary, source, and other info here:
  5.  
  6. ; http://www.logix4u.net/inpout32.htm
  7.  
  8. -----------------------------------------------
  9. InpOut32.decls:
  10.  
  11. .lib "inpout32.dll"
  12.  
  13. Inp32%( port% )
  14. Out32 ( port%, value% )
  15.  
  16. -----------------------------------------------
  17.  
  18. ; B3D Parallel Port I/O
  19.  
  20. Global  Lpt1= $378
  21.  
  22. Graphics 800,600,16,2
  23. SetBuffer BackBuffer()
  24.  
  25. ; Output data
  26. Out32(Lpt1,1)
  27.  
  28. ; Read port status
  29. DebugLog Bin$(Inp32(Lpt1))
  30.        
  31. While Not KeyHit(1)
  32. Wend
  33.  
  34. 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