Rotary encoder + 7 segment display.

That's too bad. Maybe you made a mistake in the code we can't see.