Wiring Arduino and transistor with ground as switch

Thanks very much for the quick response. Yes things are sometimes difficult to find. If I needed to put a switch connected to the arduino, would I follow the diagrams in some of the examples.

Assuming pin 7 is input and pin 13 is output.

Connect 5+ --> | switch | <--------pin 7, then pin7 with a resistor to ground. Would this control the output to say pin 13 (my output to the transistor). Hope this makes sense.