Slashdot Mirror


Control 8 Electrical Devices With Your Parallel Port

Michael Williamson writes "A PC parallel port can provide 0 or 5v on 8 pins, individually controllable. This can be used to directly drive LED lights, or with the addition of an external power supply, some switching transistors, and some relays, control 8 higher-powered devices. I've written a handful of example programs that drive a homemade 8-LED display in amusing ways."

1 of 48 comments (clear)

  1. Nice coding, Tex by ObviousGuy · · Score: 3, Funny

    value = pin[0]*1 + pin[1]*2 + pin[2]*4 + pin[3]*8 + pin[4]*16 + pin[5]*32 + pin[6]*64 + pin[7]*128;

    And they say Perl looks like line noise.

    --
    I have been pwned because my /. password was too easy to guess.