Commands

Top  Previous  Next

Summary of Command Groups

 

Setting Graphics State

AlphaFunc        

Set the alpha test function

BitmapHandle        

Set the bitmap handle

BitmapLayout        

Set the source bitmap memory format and layout for the current handle

BitmapSize

Set the screen drawing of bitmaps for the current handle

BitmapSource

Set the source address for bitmap graphics

BitmapTransformA-F

Set the components of the bitmap transform matrix

BlendFunc

Set pixel arithmetic

Cell

Set the bitmap cell number for the VERTEX2F command

Clear_B

Clear buffers to preset values

ClearColorA

Set clear value for the alpha channel

ClearColorRGB

Set clear values for red, green and blue channels

ClearStencil

Set clear value for the stencil buffer

ClearTag

Set clear value for the tag buffer

Color_A

Set the current color alpha

ColorMask

Enable or disable writing of color components

ColorRGB , ColorRBGdw

Set the current color red, green and blue

LineWidth

Set the line width

PointSize

Set point size

RestoreContext

Restore the current graphics context from the context stack

SaveContext        

Push the current graphics context on the context stack

ScissorSize        

Set the size of the scissor clip rectangle

ScissorXY

Set the top left corner of the scissor clip rectangle

StencilFunc

Set function and reference value for stencil testing

StencilMask

Control the writing of individual bits in the stencil planes

StencilOp

Set stencil test actions

Tag        

Set the current tag value

TagMask

Control the writing of the tag buffer



 


Commands that begin and finish the display list

Begin_G

Start drawing a graphics primitive

End_G

Finish drawing a graphics primitive

CmdDlStart

Start a New Display List





Commands to draw graphic objects

CmdText

Draw Text

CmdButton

Draw a Button

CmdClock

Draw an analog clock

CmdBgColor

Set the background color

CmdFgColor

Set the foreground color

CmdGradColor

Set the 3D effects for CmdButton and CmdKeys highlight color

CmdGauge

Draw a gauge

CmdGradient

Draw a smooth color gradient

CmdKeys

Draw a row of keys

CmdProgress

Draw a progress bar

CmdScrollbar

Draw a scroll bar

CmdSlider

Draw a slider

CmdDial

Draw a rotary dial control

CmdToggle

Draw a toggle switch

CmdNumber

Draw a decimal number





Drawing Actions

Vertex2f

Supply a vertex with fractional coordinates

Vertex2ii

Supply a vertex with positive integer coordinates

CmdSetFont

Set up a custom font

CmdTrack

Track touches for a graphic object





Commands to operate on memory

CmdMemCRC

Compute a CRC-32 for memory

CmdMemZero

Write zero to a block of memory

CmdMemSet

Fill memory with a byte value

CmdMemWrite

Write bytes into memory

CmdMemCpy

Copy a block of memory

CmdAppend

Append memory to display list

CmdGetPtr

Get the End memory address of inflated data





Commands for loafing image data into FT80x memory

CmdInflate

Decompress data into memory

CmdLoadImage

Load a JPEG image





Commands for setting the bitmap transform matrix

CmdLoadIdentity

Set the current matrix to identity

CmdTranslate , CmdTranslateP

Apply a translation to the current matrix

CmdScale

Apply a scale to the current matrix

CmdRotate , CmdRotateA

Apply a rotation to the current matrix

CmdSetMatrix

Write the current matrix as a bitmap transform

CmdGetMatrix

Retrieves the current matrix coefficients



Execution control

Jump

Execute commands at another location in the display list

Macro_R

Execute a single command from a macro register

Call_C        

Execute a sequence of commands at another location in the display list

Return_C

Return from a previous CALL command

Display_E

End the display list

CmdSwap

Swap de current display list





Other Commands

CmdColdStart

Set co-processor engine state to default values

CmdInterrupt

Trigger interrupt INT_CMDFLAG

CmdRegRead

Read a register value

CmdCalibrate

Execute the touch screen calibration routine

CmdSpinner

Start an animated spinner

CmdStop

Stop any spinner, screensaver or sketch

CmdScreenSaver

Start an animated screen saver

CmdSketch

Start a continuous sketch update

CmdSnapshot

Take a snapshot of the current screen

CmdLogo

Play device logo animation

 

 

Co-Processor Engine commands

 

clip0104

 

BASCOM high level commands



ClearScreen

Clears the LCD with a black background

UpdateScreen

Executes the commands in FIFO and refreshes LCD

WaitCmdFifoEmpty

Waits for execution of commands in FIFO buffer

CMDFTSTACK        

Send data from the soft stack

CMD8

Send a byte to the FT800 graphic processor.

CMD16

Send a word to the FT800 graphic processor.

CMD32

Send a dword to the FT800 graphic processor.

WR8

Write an address and a byte parameter to the FT800.

WR16

Write an address and a word parameter to the FT800.

WR32

Write an address and a dword parameter to the FT800.

               

Errors

The FTERROR byte variable contains 4 flags you can examine.

FtError.0 = WaitCmdFifoEmpty Sub when Overflowed

FtError.1 = WaitCmdFifoEmpty Sub when TimeOut

FtError.2 = FreeSpaceFt Sub when OverFlowed

FtError.3 = FreeSpaceFt Sub when TimeOut