Is it possible to assign many pins to one variable?

did you check the documentation?