arduino-menusystem icon indicating copy to clipboard operation
arduino-menusystem copied to clipboard

Add back callback

Open niesteszeck opened this issue 7 years ago • 0 comments

Is there a way to attach a callback to the menusystem.back() method?

I want to create a cancel callback for NumericMenuItems. For example I'm enabling blink on a lcd when entering a numeric menu item, so on the select callback I stop blinking (and other stuff), but when I call ms.back() from other part of the program, the select callback doesn't get called and the lcd keeps the blinking, so if there where a back callback I can turn off blinking. Also I would like to make it more like a cancel, so in there I can reset the menu and cancel the edition NumericMenuItem value

niesteszeck avatar Aug 08 '18 00:08 niesteszeck