eeprom button register

const int button = 4; // start:
const int led2 = 9; // exit:
const int led3 = 10; // button 
int butonium = 0; // set location:
int value = 0;

void setup ()

pinMode(buton, INPUT);   // start :
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);  


void loop ()


  button = digitalRead (button);
if ((button == HIGH) && (value == 0)) // button bast: // // button state variable:
{
digitalWrite (led2, LOW);
digitalWrite (led3, HIGH);
value = 1;
delay (10);
}
if ((button == LOW) && (value == 1)) // // Button left:
{
value = 2;
delay (10);
}
if ((button == HIGH) && (value == 2)) // button bast:
{
digitalWrite (led2, HIGH);
digitalWrite (led3, LOW);
value = 3;
delay (10);
}
if ((button == LOW) && (value == 3)) // // Button left:
{
value = 4;
delay (10);
}
if ((button == HIGH) && (value == 4)) // // Button bast:
{
digitalWrite (led2, LOW);
digitalWrite (led3, LOW);
value = 5;
delay (10);
}
if ((button == LOW) && (value == 5)) // // Button left:
{
value = 0;
delay (10);
}


}
}

Hi
2 leds with one button
I’m burning in order but when the energy is cut off
I want the last LED usage to remain
How to write an eeprom record
Can you help for the program

Have you looked at the EEPROM examples in the IDE ?

UKHeliBob:
Have you looked at the EEPROM examples in the IDE ?

UKHeliBob:
Have you looked at the EEPROM examples in the IDE ?

ardunio pro mini or nano
for the program with

I did not look at the IDE
can you direct it for simple application

thanks

I did not look at the IDE
can you direct it for simple application

I assume that you cannot find the EEPROM examples

They are in a very obvious location
File->Examples->EEPROM