31
10.3
Delete All Touch
Regions
Dec
Hex
254 134
FE 86
Deletes all previously created touch regions. Recommended for use before dividing the screen into new regions.
10.4
Set Touch
Mode
Dec
Hex
254 135
FE 87
Mode
Mode
Sets the method used to return touch events. Region mode will return a single value for events in defined areas.
Coordinate mode will return event, x position, and y position bytes for each press, drag, or release.
Mode
1 byte, touch reporting mode, 0 for region or 1 for coordinate mode. Default is coordinate.
10.5
Set Region
Reporting Mode
Dec
Hex
254 136
FE 88
Mode
Mode
Defines the events transmitted in region mode. Allows only events specified to return a value to the host. Key
down values are transmitted for press and drag events, key up for release, and the value 255 for out of region.
Mode
1 byte, region reporting mode, see table below. Default reporting returns all events.
Table 34: Region Reporting Mode Byte
Bit
7-4
3
2
1
0
Event
Reserved Out of Region Drag Release Press
10.6
Set Dragging
Threshold
Dec
Hex
254 137
FE 89
Threshold
Threshold
Sets the distance a press is required to travel before a drag event is reported. Precision will vary inversely to data
transmitted; care should be taken to find a suitable balance. Distance is calculated as
.
Threshold
1 byte, threshold value between 1 and 255. Default is 8.
10.7
Set Pressure
Threshold
Dec
Hex
254 138
FE 8A
Threshold
Threshold
Sets the pressure required to trigger a touch event.
Threshold
2 bytes, threshold value between 1 and 65535. Default is 1000.
10.8
Run Touchpad
Calibration
Dec
Hex
254 139
FE 8B
Triggers an interactive calibration of the touchpad. User will be required to touch various points on the screen
during calibration. This command is recommended for use when environmental or user conditions change to
ensure correct operation.
Response
2 bytes, command byte 254, then 21 for success or 20 for failure.