Touch (Focaltech)

This describes the touch-driver for the Focaltech capacitive touch found on the iPAN5/iPAN7.

Registry Keys

[HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH] (single-touch driver)

[HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH] (single-touch driver)

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Touch] (multi-touch driver)

Key

Type

Description

Fingers

DWORD

Number of fingers

Irq

DWORD

IRQ-number; Defines which GPIO will be used for touch-interrupt. Use for Trizeps IV, V, VI

IrqPin

DWORD

SODIMM-Pin to use as Interrupt. Use for Trizeps VII

SampleRate

DWORD

max. number of samples per seconds while touch is pressed

MaxCalError

DWORD

tolerance for calibration

Threshold

DWORD

Threshold at which the touch will be detected: 20..80, default: 40

Gain

DWORD

Gain: 2..31, default: 7..10

Offset

DWORD

Offset (linearity to the sides ): 0..31, default: 0

xl,xr,yt,yb

DWORD

Border ( left,right,top,bottom) to use for measured touch values. This will move touch values, which are outside the border, into the active screen area.

DetectHardware

DWORD

Bitmask of different Focaltech Firmware to check. Only FT5 (0x01) has a detection-routine. The other will be selected if it fails. 0x01 (Default) Used on FT5 and most FT6 labeled devices. 0x02 FT6. 0x04 Evervision.

Parameters with Cover-Glass

Finger

Finger

 

None

1mm glass

2mm glass

3mm glass

Gain

8

7

5

4

Threshold

40

40

30

25

Offset

0

15

25

25

Stylus

Stylus

 

None

1mm glass

2mm glass

3mm glass

Gain

8

5

4

4

Threshold

40

30

25

20

Offset

0

20

25

25

Calibration Application

Sample application to set threshold, gain and offset values.
Please note that you need to store the registry and reboot for changes to take effect, when using the single-touch driver.
The multi-touch-driver supports changing those settings on the fly.