Multiplexing with or without transistors
Many MCUs won't handle the current for seven segments unless a transistor is used. You might be OK with the AVR (40 mA maximum per output, IIRC), but you need to check it, and the total current.