Problem with 7-Segments and Rotary Encoder

Simplify and tst each component in isolation.
Write a simple loop to display a count and see if that works.