Do you have the scan limit register set to the number of columns connected?
You don't have the columns & rows swapped, do you? Anodes go to segment pins, cathodes go to digit pins.
Do you have the scan limit register set to the number of columns connected?
You don't have the columns & rows swapped, do you? Anodes go to segment pins, cathodes go to digit pins.