The assembled board is now working! It was necessary to change the code to match the common cathode displays. I am considering to add a compiling directive to select whether to use common anode or common cathode.
The green display was too dim with the original 560 Ohms resistor. I needed to change them to 150 Ohms and the brightness is much better now.
Both the prototype and the finished board are working now.