Remove these ads by
Signing UpStep 1Acquire and Set Up a Christmas Tree
| « Previous Step | Download PDFView All Steps | Next Step » |
Remove these ads by
Signing Up| « Previous Step | Download PDFView All Steps | Next Step » |

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.
Song #2 on Christmas Re-Grooved.
Long story short, I bought 5 sets of lights and a light-up star. Wired it all up and got it so I could turn the individual light sets on and off. Kind of fun, but not too impressive. I found a winamp plugin, ready rolled, that was designed to control 8 leds from the parallel port (a la http://forums.majorgeeks.com/showthread.php?t=77923). It just worked - everyone agreed it was one of the funniest things they had ever seen when I had it grooving to Love's Theme by Barry White.
However, if all you are doing is writing to the data bits of the parport, i.e. you need less than 8 bits of output, just open the standard parallel port driver and write to it. I use that for an experiment at work. If you need to read, use the control bits, or use irq's it ain't going to work.
Open the parallel port, windows considers it a file:
hndFile = CreateFile( "\\\\.\\LPT1", // Open the Parallel port
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
0,
NULL
);
Write to the parallel port:
WriteFile(hndFile,OutByte,1,&NoBytes,NULL);