http://www.purebasic.fr/english/viewtop ... 12&t=36570 (Windows & Linux)
http://www.purebasic.fr/english/viewtopic.php?t=29852 (Windows only, port of DLL)
The reason I had problem getting it to work was because I needed the updated DLL file for x64 systems, this will install the needed (signed) driver (x32 or x64) automatically. It and the source code can be downloaded from here:
http://www.highrez.co.uk/Downloads/InpOut32/
For x32 and x64 systems one can use the x32 version of the DLL but for an x64 only application one must use the x64 version of the DLL.
Now I release some code updated for 5.20 LTS and using prototypes. Only for Windows though, if you need Linux support see the linked thread and make it work yourself.
Code: Select all
EnableExplicit
Prototype p_Out32(portAddress.w,value.w)
Prototype p_Inp32(portAddress.w)
Define i.u
If OpenLibrary(0,"inpout32.dll")
Global pPortOut.p_Out32 = GetFunction(0,"Out32")
Global pPortIn .p_Inp32 = GetFunction(0,"Inp32")
For i=0 To 255
pPortOut($378,i)
Delay(100)
Next
CloseLibrary(0)
Else
Debug 1
EndIf
http://retired.beyondlogic.org/epp/epp.htm
http://en.wikipedia.org/wiki/Parallel_port
Is it awesome?
Yes! Giving your computer IO ports that you can use as you like sure is handy!
I for example will try making it interface directly with an old floppy disk drive and make backups of some diskettes not readable by Windows.