Contains nodes of items and values ​​for creating a menu when working with displays, there is a sample of creating "my-menu", and based on it, an example of using a menu in a real project is given. Example and Example2 tested on "arduino uno":).
The main nodes of the project
Works together with "menu-item" via "ITEM IN" and "CHANGE" ports. Switches the value at the "Value'" output from "Val0" to "Val..." after the "CHANGE" signal. At the output "VALUE" is the number of the current value.
An example of implementing a menu for "PWM" control of "RGB" "LED" indicator, as an interface screen "LCD" 16x2. We control with two buttons, "Scroll" to change the item, "OK" to change the values ​​(0%to 100% after 100% is reset to 0%).
A sample project for managing LEDs operating modes based on the "led-control-menu" node
The menu is made based on the node "menu-item" and "change-the-value-of-the-item-to".
NODE is a menu item that has its own name and is activated at the address. We connect them to each other and create a list of menus, each item of which responds to the OK signal at its address. At the output of the chain from these nodes will be the name of the one whose address was called.
This node is the value of the menu item, which can be increased by the ok signal to the limit, after which it will reset to 0. It works together with menu-item. The value will be displayed as a percentage. See all the details of the work in my-menu
A four-item menu model is created. Made with nodes "menu-item" and "menu-value".
To use the nodes in your project you should have the nazarijtipusak080/menu-item-and-value library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.