# Is there anyway one can toggle a light using a program on a computer?

I am a bit new to electronics, but I am a programmer. The thing is that I want to control one or two lights using my code on my computer

Arduino and similar devices are not an option in the meanwhile. I don't either have an RS232 port.

Note that I can extract IC and stuff from things like JoySticks or whatever if needed.

### Some things I know/learned:

• Turning on/off a light is basically [not] passing positive voltage to the LED, where the LED is always connected to an appropriate ground
• Turning on/off a light is a logical operation, so if we are using an analog jack (or whatever), we need to convert it to a logical output, since we need the light either on or off, not something in between
• Using ports like USB requires a microcontroller chip

Note that I don't mind doing hacky stuff, I'm doing that being a hobbyist, not for production

• Please define 'light' a bit more. Just an LED as an indicator or something else? How many? – KarlKarlsom Jul 2 '16 at 2:50
• What connectors you have on your PC available? – KarlKarlsom Jul 2 '16 at 2:52
• @KarlKarlsom It's an ordinary LED lamp – OverCoder Jul 2 '16 at 2:55
• @KarlKarlsom I have RJ-11, RJ-45, USB, Line in, out, and mic audio jacks. It's a laptop – OverCoder Jul 2 '16 at 2:56
• Why are microcontrollers not an option? – Tom Carpenter Jul 2 '16 at 3:06