I'm not really savvy when it comes to what ports are what. I have got this code though which uses the Inpout32 DLL which can be downloaded from somewhere. I was using a 25 pin serial port and that seemed to work.
I used a tutorial someone posted to be able to load the DLL and the function.
The second value in Out32 is a binary value which will trigger the pins. Lpt1 is the port number. I think that should work for everyone.
If you can't find the DLL on the internet I will upload to my website for you.
[edit] I found the DLL: http://www.logix4u.net/inpout32.htm [/edit]
Global IOP = LoadLibraryA("Inpout32") Global Out32(Port:Int,Value:Int)=getprocaddress(IOP,"Out32") Global Lpt1 = $9800 Out32(Lpt1,1)
I used a tutorial someone posted to be able to load the DLL and the function.
The second value in Out32 is a binary value which will trigger the pins. Lpt1 is the port number. I think that should work for everyone.
If you can't find the DLL on the internet I will upload to my website for you.
[edit] I found the DLL: http://www.logix4u.net/inpout32.htm [/edit]