well the matrix looks right,
the PNPs look right,
the 138 is a 3 to 8 way decoder
i havent checked the connections,
or the logic to the bases,
which wants to be high i think to shut the transistors,
which seem to be wired as emitter followers,
i have a feeling that the 138 gives a logic signal high,
but i will have to check ...
the straight output from the port
is only capable of a signal output,
but i would think it could operate an LED alright.
If the circuit here is ok,
then i would suspect the program feeding the port ...