Digital Voltmeter with 7 segment display

glamo:
I am trying to build LED 3 digit voltmeter with 7219 and Arduino UNO

I try 2 code, fisrt one is PICMICROLAB's, the second one is "How to Electronics 50V DC voltmeter.
These are 4 digit voltmeter and okay for me at the beginning.

But both have some problems, first one problem is:

The digit0 display only G segment between 9-0 . It does not display "0" , jump to 1.
You can also see for the last digit, what I mean at https://youtu.be/dL1izXqHi0k

The second one is displays some random numbers, digit3 and digit2 values are changing at the same time with different values.

Is there anyone trying thiese codes or running codes
If so, do you share.

Sound like you accidentally replaced the B pin and G pin of the 7 segment led? you might want to check the wire connection