CmdSketch

Z MCS Wiki AVR
(Rozdiel medzi revíziami)
Prejsť na: navigácia, hľadanie
(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> ...")
 
 
Riadok 16: Riadok 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;"
Riadok 59: Riadok 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;">&nbsp;L1</span>&nbsp;or&nbsp;<span style="font-weight: bold;">L8</span>
 
Format of sketch bitmap, either<span style="font-weight: bold;">&nbsp;L1</span>&nbsp;or&nbsp;<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>
 
&nbsp;
 
&nbsp;
 +
 +
<span class="f_Header">FT800</span>
  
 
Please &nbsp;note that update frequency of &nbsp;bitmap data in graphics memory depends on sampling frequency of ADC built-in circuit of FT800, which is up to 1000 Hz.
 
Please &nbsp;note that update frequency of &nbsp;bitmap data in graphics memory depends on sampling frequency of ADC built-in circuit of FT800, which is up to 1000 Hz.
Riadok 68: Riadok 77:
 
<span class="f_Header">&nbsp;</span>
 
<span class="f_Header">&nbsp;</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.
+
&nbsp;
  
Command&nbsp;[[CmdStop]]&nbsp;stops the sketch process.
+
<span class="f_Header">FT801</span>
  
&nbsp;
+
<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>
  
Note that only one of&nbsp;CmdSketch,&nbsp;[[CmdScreenSaver]]&nbsp;or&nbsp;[[CmdSpinner]]&nbsp;can &nbsp;be active at one time.
+
<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 &nbsp;a linear interpolation algorithm to provide a smoother effect when drawing the output line.</span>
  
 
&nbsp;
 
&nbsp;
  
<span style="font-family: Arial;">&nbsp;</span>
+
&nbsp;
  
<span style="font-family: Arial;">&nbsp;</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&nbsp;[[CmdStop]]&nbsp;stops the sketch process.
 +
 
 +
&nbsp;
 +
 
 +
Note that only one of&nbsp;[[CmdSketch]],&nbsp;[[CmdScreenSaver]]&nbsp;or&nbsp;[[CmdSpinner]]&nbsp;can &nbsp;be active at one time.
 +
</div>
  
 
= <span class="f_Header">Example</span> =
 
= <span class="f_Header">Example</span> =

Aktuálna revízia z 23:19, 15. jún 2015

Obsah

 [skryť

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 CmdSketchCmdScreenSaver or CmdSpinner can  be active at one time.

Example

' see demo - FT800 Sketch.bas also FT800 Demo4.bas (SUB Sketch)
Languages   English  
Osobné nástroje
Menné priestory
Varianty
Operácie
Navigácia
Jazyk