![New Eagle Raptor VeeCAN 800 Скачать руководство пользователя страница 13](http://html.mh-extra.com/html/new-eagle/raptor-veecan-800/raptor-veecan-800_getting-started_1677308013.webp)
12
go into the background such as background images or non-moving parts should go here. This is also a
good place to initialize button definitions.
Update_Foreground()
The display SDK queues foreground drawing tasks and executes them in a tight loop.
Update_Foreground()
is the function that should contain any moving parts or elements that will be
updated live on the screen.
IsCurrentScreen
IsCurrentScreen
is a Boolean output that gets set high when the given screen is current. The
traditional application for this is to attach it to an enabled subsystem allowing everything inside it to
run continuously (free of the display loop.) This is where logic I/O and communications relevant to a
particular screen should go.
Switching Between Screens
Figure 3.1.2.a – Raptor™ Goto Screen Block Called by a Falling Edge Trigger
Switching between screens can be done with the
Goto Screen
block. When executed this block
will switch from the current screen to the specified screen.
Note: When executing this block inside of a Screen function (eg.
IsCurrentScreen
) it is highly
recommended to place the
Goto Screen
block inside of a triggered subsystem with a falling-edge trigger
to allow the value that triggered the switch to reset before changing screens. This helps to prevent
infinite loops, or being prevented from returning to this screen again