ive done that before, are you saying the problem is the multiple pins? if so just make an array and loop over them