FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
238
Copyright © Bridgetek Limited
Command layout
+0
CMD_SKETCH(0xffffff30)
+4
X
+6
Y
+8
W
+10
H
+12
Ptr
+16
Format
Examples
To start sketching into a 480x272 L1 bitmap:
cmd_memzero
(
0
,
480
*
272
/
8
);
cmd_sketch
(
0
,
0
,
480
,
272
,
0
,
L1
);
//Then to display the bitmap
cmd
(
BITMAP_SOURCE
(
0
));
cmd
(
BITMAP_LAYOUT
(
L1
,
60
,
272
));
cmd
(
BITMAP_SIZE
(
NEAREST
,
BORDER
,
BORDER
,
480
,
272
));
cmd
(
BEGIN
(
BITMAPS
));
cmd
(
VERTEX2II
(
0
,
0
,
0
,
0
));
//Finally, to stop sketch updates
cmd_stop
();
Code snippet 16 CMD_SKETCH example