FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
236
Copyright © Bridgetek Limited
5.49
CMD_SCREENSAVER - start an animated screensaver
After the screensaver command, the co-processor engine continuously updates
REG_MACRO_0 with VERTEX2F with varying (x,y) coordinates. With an appropriate
display list, this causes a bitmap to move around the screen without any MCU work.
Command CMD_STOP stops the update process.
Note that only one of CMD_SKETCH, CMD_SCREENSAVER, or CMD_SPINNER can be
active at one time.
C prototype
void cmd_screensaver( );
Description
REG_MACRO_0 is updated with respect to frequency of frames displayed (depending
on the display registers configuration). Typically for 480x272 display the frame rate
is around 60 frame per second.
Command layout
+0
CMD_SCREENSAVER(0xffffff2f)
Examples
To start the screensaver, create a display list using a MACRO instruction – the co-
processor engine will update it continuously:
cmd_screensaver
();
cmd
(
BITMAP_SOURCE
(
0
));
cmd
(
BITMAP_LAYOUT
(
RGB565
,
128
,
64
));
cmd
(
BITMAP_SIZE
(
NEAREST
,
BORDER
,
BORDER
,
40
,
30
));
cmd
(
BEGIN
(
BITMAPS
));
cmd
(
MACRO
(
0
));
cmd
(
DISPLAY
());
Code snippet 15 CMD_SCREENSAVER example
Here is the result: