CmdSketch

From MCS Wiki AVR
Revision as of 20:01, 12 December 2014 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Action

Start a continuous sketch update.

 

 

Syntax

CmdSketch x, y, w, h, ptr, format

 

 

Remarks

x

x-coordinate of sketch area top-left, in pixels

y

y-coordinate of sketch area top-left, in pixels

w

Width of sketch area, in pixels

h

Height of sketch area, in pixels

ptr

Base address of sketch bitmap

format

Format of sketch bitmap, either L1 or L8

 

Please  note that update frequency of  bitmap data in graphics memory depends on sampling frequency of ADC built-in circuit of FT800, which is up to 1000 Hz.

 

After the sketch command, the co-processor engine continuously samples the touch inputs and paints pixels into a bitmap, according to the touch (x, y). This means that the user touch inputs are drawn into the bitmap without any need for MCU work.

Command CmdStop stops the sketch process.

 

Note that only one of CmdSketch, CmdScreenSaver or CmdSpinner can  be active at one time.

 

 

 

Example

' see demo - FT800 Sketch.bas also FT800 Demo4.bas (SUB Sketch)
Languages   English  
Personal tools
Namespaces
Variants
Actions
Navigation
Language