It is possible to use the same sort of setup for interfacing switches and leds to a PC parallel port to interface real world things.

Photo showing a DT205 relay board mounted on a DT004 mother board connected to a PC parallel port via ribbon cable
Download sample windows program for controlling 4 relays.

Screen shot of relay control program