Atmega 32 hat der nicht 4X8, also 32 Portpins?
Da musste man doch mit links relativ einfach eine Matrix hinbekommen!
Vg Micha