beautypg.com

Animation file creation – Matrix Orbital GLK19264A-7T-1U User Manual

Page 39

background image

34

Command Summary

7.6 Get
Animation
Frame

Dec
Hex
ASCII

254 196

FE C4

■ ─

ID
ID
ID

v8.3

Get the current frame of a displayed animation.

ID

Byte

Animation number to request frame number, value between 0 and 15.

Response

Byte

Current frame number of the animation specified, value between 0 and 31.

Animation File Creation

An animation file is a series of bitmaps, each displayed for a specified length of time within a continuous
rotation. The file begins by specifying the number of frames, the offset of each block of bitmap
information, and the time to display each frame. After which bitmap headers and data are transmitted
for each frame, in the same manner as the Bitmap File Creation example.

Table 28: Animation file format

Total Frames

One byte representing the total number of frames in the animation

Offsets

One entry for each frame, 4 bytes indicating the start of the bitmap file. Maximum 32 frames

Times

Two bytes for each frame representing the length of time (100ms) for which it is displayed.

Header 1

Two bytes, one representing the width and one the height of the first bitmap.

Bitmap 1 Data

The first bitmap data, as per the Bitmap File Creation

example.

Header 9

Two bytes, one representing the width and one the height of the last bitmap.

Bitmap 9 Data

The last bitmap data, as per the Bitmap File Creation

example.