CmdSketch
(Created page with "= <span class="f_Header">Action</span> = Start a continuous sketch update. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> </span> ...") |
|||
Line 16: | Line 16: | ||
= <span class="f_Header">Remarks</span> = | = <span class="f_Header">Remarks</span> = | ||
− | <div style="padding: 0px; margin: 0px;"> | + | <div style="padding: 0px; margin: 0px;"><div style="font-size: 13.3333330154419px; padding: 0px; margin: 0px;"> |
{| cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing: 0px; border-collapse: collapse;" | {| cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing: 0px; border-collapse: collapse;" | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
Line 59: | Line 59: | ||
| valign="top" width="767" style="width: 767px; border: 2px solid rgb(0, 0, 0);" | | | valign="top" width="767" style="width: 767px; border: 2px solid rgb(0, 0, 0);" | | ||
Format of sketch bitmap, either<span style="font-weight: bold;"> L1</span> or <span style="font-weight: bold;">L8</span> | Format of sketch bitmap, either<span style="font-weight: bold;"> L1</span> or <span style="font-weight: bold;">L8</span> | ||
+ | |||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="65" style="width: 65px; border: 2px solid rgb(0, 0, 0);" | | ||
+ | freq | ||
+ | |||
+ | | valign="top" width="767" style="width: 767px; border: 2px solid rgb(0, 0, 0);" | | ||
+ | The oversampling frequency. The typical value is 1500 to make sure the lines are connected smoothly. The value zero means no oversampling operation. | ||
|} | |} | ||
</div> | </div> | ||
| | ||
+ | |||
+ | <span class="f_Header">FT800</span> | ||
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. | 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. | ||
Line 68: | Line 77: | ||
<span class="f_Header"> </span> | <span class="f_Header"> </span> | ||
− | + | | |
− | + | <span class="f_Header">FT801</span> | |
− | + | <span style="font-size: 11pt; font-family: Calibri;">CmdSketch - Capacitive touch specific sketch This command has the same functionality as CmdSketch except it has done the optimization for a Capacitive Touch Panel.</span> | |
− | + | <span style="font-size: 11pt; font-family: Calibri;">Because Capacitive Touch Panels have lower sampling frequencies (around 100 Hz) to report the coordinates, the sketch functionality updates less frequently compared to resistive touch. CmdSketch introduces a linear interpolation algorithm to provide a smoother effect when drawing the output line.</span> | |
| | ||
− | + | | |
− | + | 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. | ||
+ | </div> | ||
= <span class="f_Header">Example</span> = | = <span class="f_Header">Example</span> = |
Latest revision as of 23:19, 15 June 2015
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 |
freq |
The oversampling frequency. The typical value is 1500 to make sure the lines are connected smoothly. The value zero means no oversampling operation. |
FT800
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.
FT801
CmdSketch - Capacitive touch specific sketch This command has the same functionality as CmdSketch except it has done the optimization for a Capacitive Touch Panel.
Because Capacitive Touch Panels have lower sampling frequencies (around 100 Hz) to report the coordinates, the sketch functionality updates less frequently compared to resistive touch. CmdSketch introduces a linear interpolation algorithm to provide a smoother effect when drawing the output line.
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 |
---|