This menu was created during the development of the Bluetooth Watt meter, which required an extensive settings menu, despite having only one button and one LED available. See the whole article here: https://avdweb.nl/arduino/hardware-interfacing/one-button-menu