The tracking unit taps
The unit serves to control the pressing elements on the HMI panel Nextion. To implement this function when creating the project pane in the editor Nexnion HMI do the following steps.
1. For each monitored element, you must create two variables. They must be of a numeric type, and be global. Respectively the names of them must be unique within the entire project Nexnion HMI.
2. In the event Touch Press Event and a Touch Release Event to write code that when the event occurs, updates the corresponding variable the value 1
On this training by Nextion Editor completed.
The tracking unit taps are configured using the editor block
First select or create a panel. Existing in the project panel, you can choose from the dropdown list. To create a new panel click the button with the + on the right panel. Window opens added panel.
In this dialog you must select the UART port is connected to the panel, and configure it if necessary. It is also necessary to specify the name of the panel.
In this dialogue there is the possibility to add comments to the panel, create pages and elements included in the page.
After selecting or creating a panel, you must select or create a page. When you click add page opens the corresponding window.
In this window you should enter the page name and ID, which were received in the interface editor Nextion HMI while creating this page
Set "Start page" when starting the controller to be migrated to this village. If this checkbox is not set on any page, homepage will be the page with the lowest ID.
You must then create or select variables attached to a tracked item. To add a variable click the add button. Opens the add element
While clicking on the element panel on the unit output will be the log. 1