Rotary encoder + 7 segment display.

We have warned you before that we cannot help fix your code unless you post the whole code.