DGUS function upgrade: Flexible Stacking of Any Page Controls

In response to the market demand for further improving the flexibility of DGUS platform control combinations, DWIN has added a new "page overlay switch" interface in the DGUS platform, which can be used to implement global dynamic alarm prompts and other functions.

Video: https://forums.dwin-global.com/index.php/forums/topic/news-dgus-function-upgrade-flexible-stacking-of-any-page-controls/

Using this function, users can overlay the controls of any page onto all remaining pages. The controls on the overlay page default to the highest priority. The controls on the overlay page are at the top of the overlay page (including all display controls and touch controls on the overlay page). The priority of touch controls can be adjusted according to actual operation needs. When the touch controls of two pages overlap, only the touch control with the highest priority is effective.

Development method:

1. Upgrade the smart screen kernel to the latest version: T5L_UI_DGUS2_V65.

2. Refer to the 0x00E8 address of the operating system variable interface in the development guide, turn on the page overlay switch, and set the control priority and the page ID that needs to be overlaid.

Address

Definition

Length(byte)

Description

0x00E8

Page Stacking Switch

2

0xE8_H: 0x5A Enable page overlay function, set other value to disable the function;0xE8_L: Enable page overlay post-touch mode;0x00=does not respond to overlay page touches;0x01 = only respond to the touch of the overlay page;

0xE9: the ID of the page to be overlayed.

For example, superimpose all the display and touch controls on page 74 onto other pages for display. After superimposition, only the touch controls on page 74 will be responded to (that is, 0xE8_L is set to 0x01). The operation method is:

Address 0x00E8: Write data 0x5A01 (5A means turning on the overlay switch, 01 means only responding to the touch of the overlay page)

0x00E9 address: write the overlay page ID number 0x004A (ie 74)

Command example:

Send: 5AA5 07 82 00E8 5A01 004A The overlay page No. 74 is displayed and only responds to overlay page touch.

Send: 5AA5 07 82 00E8 5A00 004A The overlay page No. 74 is displayed and does not respond to the overlay page touch.


Post time: Sep-25-2023