Taskit ARM9 CPU-module with Linux Stamp9261-series Stamp9261 (64F/64R) 542310 Data Sheet

Product codes
542310
Page of 65
Linux Guide
taskit GmbH
The optional touchscreen can be used as pointer like a pc mouse in graphical applications.
To build applications that use the touchscreen as input device you can use the class 
libraries of the Nano-X Window System or Qtopia Core from Trolltech
The Nano-X Window System will detect the touchscreen as a standard input device 
automatically.
When using Qtopia Core you will have to set an environment variable that is recognized by 
the Qtopia application:
export QWS_MOUSE_PROTO=LinuxTp:/dev/input/ts1
If QWS_MOUSE_PROTO is not defined Qtopia Core will try to detect an inputdevice 
automatically. This will fail and crash the system. 
If you don't want to use a touchscreen in your Qtopia application you will have to pass the 
command line parameter -nomouse
9.6.1. Calibrating the touchscreen
If you are using the touchscreen and the pointer does not follow you finger correctly you 
can calibrate it.
To adjust touchscreen coordinates to display coordinates the program TouchTool can be 
used. This tool can calibrate the touchscreen, save the measured data and reload saved 
calibration data.
The TouchTool sources con be found on the starterkit-CD: /inputdriver.
To start the calibration enter: /config/TouchTool -c.
During the calibration process you will have to move your finger to the upper, lower, left 
and right side of the visible screen.
A 10 second countdown, indicating the end of the calibration process, is displayed on the 
terminal. This counter is restarted every time you touch the touchscreen.
The calibration values are stored in the eeprom of the touchscreen controller and can be 
loaded using the TouchTool: /config/TouchTool -l.
Page 34 of 65
Version 1.26
 (2008-04-30)