EasyManua.ls Logo

Bridgetek FT801 - CMD_CSKETCH - Capacitive touch specific sketch

Default Icon
263 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
254
Product Page
Document Feedback Copyright © Bridgetek Limited
6.6 CMD_CSKETCH Capacitive touch specific sketch
This command has the same functionality as CMD_SKETCH except it has done the
optimization for a capacitive touch panel. Because capacitive touch panels have lower
sampling frequencies (around 100Hz) to report the coordinates, the sketch functionality
updates less frequently compared to resistive touch. CMD_CSKETCH introduces a linear
interpolation algorithm to provide a smoother effect when drawing the output line.
Please note this command is not applicable to FT800 silicon.
C prototype
void cmd_csketch( int16_t x,
int16_t y,
uint16_t w,
uint16_t h,
uint32_t ptr,
uint16_t format,
uint16_t freq);
Command layout
+0
CMD_CSKETCH(0xffffff35)
+4
X
+6
Y
+8
W
+10
H
+12
Ptr
+16
Format
+18
Freq
Parameters
x
x-coordinate of sketch area top-left, in pixels
y
y-coordinate of sketch area top-left, in pixels
w

Table of Contents