FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
232
Copyright © Bridgetek Limited
5.48
CMD_SPINNER - start an animated spinner
The spinner is an animated overlay that shows the user that some task is continuing. To
trigger the spinner, create a display list and then use CMD_SPINNER. The co-processor
engine overlays the spinner on the current display list, swaps the display list to make it
visible, then continuously animates until it receives CMD_STOP. REG_MACRO_0 and
REG_MACRO_1 registers are utilized to perform the animation kind of effect. The
frequency of points movement is with respect to the display frame rate configured.
Typically for 480x272 display panels the display rate is ~60fps. For style 0 and 60fps,
the point repeats the sequence within 2 seconds. For style 1 and 60fps, the point repeats
the sequence within 1.25 seconds. For style 2 and 60fps, the clock hand repeats the
sequence within 2 seconds. For style 3 and 60fps, the moving dots repeat the sequence
within 1 second.
Note that only one of CMD_SKETCH, CMD_SCREENSAVER, or CMD_SPINNER can be
active at one time.
C prototype
void cmd_spinner( int16_t x,
int16_t y,
uint16_t style,
uint16_t scale );
Command layout
+0
CMD_SPINNER(0xffffff16)
+4
X
+6
Y
+8
Style
+10
Scale