This might sound crazy, but bear with me ;)
I am making a DIY camera trigger, and I would like to see if I can trigger it remotely by plugging it into my Microphone or Headphone ports. It's a basic 2.5 mm --> 3.5 mm plug, and all I need to do is short the first and last, first and second, and all three to focus, trigger, and focus and trigger.
It's a bit hard to explain, but is it possible to send electrical signals directly through those ports? I'm up to some C++ or Python (heh) if I have to...