I am writing a program for dos in C++ that would controll a printer port ( send and recieve data ). Connected to the printer port would be a set of IR sensors and LED's. But the problem is that I dont know how to controll the port's pins. My plan is to create a lap counter for our HO, four lane, slotcar track.
Code/examples would be of great help!