That Anilmus dude is a bit harsh.
I have a bit of code I did (with a lot of help from this forum) that you may be interested in. It took the results from a variable and put it out to 4-7 segment LEDs. I started with a single 7-seg LED and moved up to a pot outputting to the variable and multiplexing the 4-7 segments using 12 outputs. Check out this website. https://picbasic.com/resources/articles/ledart.htm
My code is in PicBasic Pro.