davetcc / tcMenu

Menu library for Arduino, mbed and ESP with designer UI and remote control capabilities.
https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/
Apache License 2.0
275 stars 25 forks source link

Add method to save single MenuItem's value to EEPROM ? #250

Closed luwenjin closed 1 year ago

luwenjin commented 1 year ago

I have a bunch of settings under Settings Menu, and I also have some standalone options under other menus.

These stand alone options need to be saved when changed. But currently, it seems I can only save the whole menu data to EEPROM at once, which may feel a bit odd to the users.

It would be nice if we can save single MenuItem's value to EEPROM.

davetcc commented 1 year ago

Yep looked at the code and it is really trivial with very little risk (and well unit tested too), I'll add that in 3.0, tracking https://github.com/davetcc/tcMenuLib/issues/167