How do I use variables in functions/procedures

what is pin(), i thought you were using shift registers as output devices?