beautypg.com

5 buffers – Matrix Orbital GTT70A User Manual

Page 22

background image

Command Summary

18

2.5 Buffers

5.1 Load Font

Dec
Hex
ASCII

254 40

FE 28

þ (

Index FileName
Index FileName
Index FileName

2.0

Load a font file from the SD card into a font buffer for use.

Index

Byte

Index used to identify the font. Specific to fonts.

FileName

ASCII String

Filename, including path from the root folder, of the font file to load.

Return Message

252 40 Length

Result

Result

Byte

Outcome of Load Font command, as per eErrorCode values.

Table 15: eErrorCode values

Value

Description

0

File Not Found

1

Invalid Bitmap File Format

2

Invalid 9Slice Metrics

3

Invalid 9Slice Index

4

Invalid Bitmap Index

5

Invalid Bargraph Index

6

Invalid Animation Index

7

Invalid Animation File Format

8

Invalid Font Index

9

Invalid Command Parameters

10

Display is out of RAM

11

Invalid Region File Format

12

Invalid Touch Calibration

13

Successful Touch Calibration

14

Invalid File Format

15

Invalid Trace Index

16

Invalid Touch Region

254

Success

255

Unknown Exception

5.2 Load Bitmap

Dec
Hex
ASCII

254 95

FE 5F

þ _

Index FileName
Index FileName
Index FileName

2.0

Load a bitmap file from the SD card into a bitmap buffer for use. Supported formats are BMP, GIF, JPG, and PNG
(all in RGB format only, an alpha channel is not supported).

Index

Byte

Index used to identify the bitmap. Specific to bitmaps, and screen rectangles.

FileName

ASCII String

Filename, including path from the root folder, of the bitmap file to load.

Return Message

252 95 Length

Result

Result

Byte

Outcome of Load Bitmap command, as per eErrorCode values.

This manual is related to the following products: