jonblack / arduino-menusystem

Arduino library for implementing a menu system
MIT License
194 stars 85 forks source link

A full example of how to use NumericMenuItem #76

Closed ifrew closed 6 years ago

ifrew commented 6 years ago

Is there any full simple example of how to use NumericMenuItem? I'm getting a little lost in the coding for being able to use prev and next methods to change the values. Basically I'd like to see an example that has a single numeric menu item and then be able to change the value of the fields once it is selected. The comments in the code refer to having to set _has_focus in sub classes but I'm not creating any sub classes. Does selecting the menu item by definition put it into focus and when you go back puts it out of focus?

Any help appreciated. Thanks

ifrew commented 6 years ago

Going to close this. Found what i needed in serial-nav example and after looking at your implementation all makes sense now. Very nice design. Used composite design techniques over 35 years ago. Nice to see it still in practice.