Integer Input with Pushbutton

Hello guys,

an integer value between 0 and 70k is supposed to be assigned to a variable with as few a possible push buttons and maybe a 1-2 lines display. How can you guys help me to code this please?

Are there libraries witch provide a small menue structure, to scroll decimal places for instance?

greetings

Do you need a way to implement this with as few buttons as possible or do you want a finished library for it?

You can do it with two (three if you need an enter button too) buttons by using one to count up the current digit and the other one to change to the next digit. If you use a time based input method you can even to it with one button only by having a long push of the button change the digit while short pushes counting up.

your "few buttons" suggestions makes a perfect solution i think, so thank you!

in case you have herad about a library... im looking forward to check it just for curiosity .
greets