Using legacy ports.
No-solder-parallel-port-break-out (Great for home control) We are going to take the parallel port breakout cable and have some fun with the following code (which I may rewrite) and use some extra parts. Part 1 C code Code source Note asm/io.h s/b sys/io.h in parcon.c Part II Basic code: Freebasic: (code snippet) (Note: Compiled code on linux must be run under sudo or root unless special rights are given to the program via chmod +s.) 1 2 3 4 5 6 7 8 rem turn on D0 (pin 2 on the parallel port) out 888,1 rem get status and print to terminal ? inp(888) rem turn off D0 (pin 2 on the parallel port) out 888,0 rem get status ? inp(888) Code Source Circuit for testing the code. With the cable it will be easier to set up. Simple LED driving circuits You can make simple circuit for driving a small led through PC parallel port. The only components needed are one LED and one 470 ohm resistors. You simply connect the diode and resist...