Yes, there is even a FAQ Entry on the subject with respect to the hardware.

However, the software side of it (the various possible uses for the hardware connection you suggested) are going to have to be left up to you to write.
_________________________
Tony Fabris