All data bus for each row of 8 leds will be connected to ATMEGA chip as well as a pin to enable output and 3 pins control IC 74HCT138 47