I would order one of those, I took a look there. However, I had to create a custom circuit board for a class and am basing my work on that. I'm making an SPDIF/Optical audio switcher. I presented everything for the class and it wasn't working, however, the main reason I wanted to build this is so that I could use it. So it needs to be able to fit the circuit board I have, so I'm kind of stuck doing what I'm trying now.

Anyone else have any ideas? Thanks for the ideas so far. Does the code look correct? or does it need to change?