i have a circuit with atmega88 and 8 predefines modes of work, that can be changed acting on 2 switch buttons.
Modes can be changed very often, more than one time in a second, depending on the human hand speed.
I want keep the current mode stored in eeprom, so that at next reboot device remember to start in that mode.
But i don't want write the eeprom at every button pushed, to avoid too frequents eeprom writes.
What is the common approach to develop this ?