Welcome to AVR32 Linux... Users Groups

Tslib

This library provides an abstraction level for touchscreen panel in embedded systems. Tested with an ads7843 touch screen controller (using kernel ads7846 driver).

Building and installing

Download the tslib archive and the patch below.
./autogen.sh
patch -p1 < ../tslib-1.0-avr32.patch
export ac_cv_func_malloc_0_nonnull=yes
CFLAGS="-O2 $CFLAGS" ./configure --host=avr32-linux  --prefix=/usr --sysconfdir=/etc
make
make install DESTDIR=/your_rfs_path
Then edit your /etc/ts.conf. For example remove the # before raw input if you want to use the input subsystem. Now export these env variables (change event0 with your current configuration)
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CONSOLEDEVICE=none
Now you can calibrate the touchscreen with /usr/bin/ts_calibrate

* tslib-1.0-avr32.patch: Tslib patch for AVR32

r1 - 2007-12-28 - 09:45:30 - MatteoVit
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel®, AVR® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
All other trademarks are the property of their respective owners.
Syndicate this site RSSATOM