Inputting number & storing number in long term memory

Hi all I have 4 buttons, up, down, select and reset.

What I want to do is using up & down cycle through numbers 0-9 then using select inputs that number and moves to the next character. Basically like inputting a phone number and then once 11 digits have been enter it saves automatically into long term memory and will stay there after power off/on unless reset button is held for say 5 seconds.

Can anyone help me with this?

You need to store the value in EEPROM.

Clearing them with the reset isn't possible. The Arduino can't detect how long it's in reset. Clearing it by pressing select for at least 5 seconds when starting up is a doable way.

What do you already have?

septillion:
Clearing them with the reset isn't possible.

If you mean the Arduino's built-in reset button, then you're right, it isn't possible. (At least as far as I know.)

But maybe the OP was just using "reset" as a label for another button.

Anyway, this doesn't sound hard; it sounds like setting a clock, which isn't hard to implement (except this "clock" doesn't actually tell the time).

Yeay, that's true :slight_smile: When he said reset I automatically thought about the Arduino reset because every Arduino has this as a button.