thanks Henrik

If the group of Ports required to send the same output to are not a constant offset value per port , such as

PortA.0
PortA.2
PortA.3

PortB.2
PortB.5

PortC.0
PortC.1
Portc.3
PortC.5

How would the code go ?