Zwischentabelle ?
Eine Tabelle: index---> welches Port & Pin
0 ... portb . 1
1 ... portc . 3
2 ... portd . 7
.....etc. ...


PS: wie das technisch geht, reden wir, wenn es überhaupt was für dich ist