Configurations of 800×480 7 inches AR1100 and Touchscreen w/t tslib for raspberry pi
Today i’ll tell about how to configure the 7-inch AR1100 touchscreen display from Microchip. This display is resistive touchscreen, comes with the touchscreen driver from Adafruit and connect on raspberry pi with HDMI. so i want to do touch function to it.
tslib is the library for embedded to make and filter touchscreen events from the display. it prefer to cooperate many programs like Qt, XMBC, etc. so Today i’ll use this library to do touch with the display.
1. Configure the resolution of the display.
The Ar1100 display’s resolution is 800×480 px with 7″ dimension. in Raspbian you configure the display resolution in /boot/config.txt. So you have to enter this file to configure.
and change the configuration to this.
and reboot the raspberry pi once.
Alright!!! the display will become 800×480 pixels (Fullscreen)…..
2. Making touch with TSLIB
First, get the tslib from github.
and then, launch the autogen.sh
if you can not run autogen.sh, please download automake autoconf libtool by apt-get
next, you run the configure file
then, make the file
…The installation is done. And the installation file is in /usr/local/tslib as you set in -prefix.
But the files that is configured in tslib is not followed in default, so you have to re-set the new configuration in TSLIB.
in TSLIB_TSDEVICE, you can find the input device by
if it works, it will show the strange language…….
then, you can run ts_calibrate
In ts_calibrate, it shows 4 corner cross-hairs and a center to point. point your finger on the cross-hair.
if it’s correct. the pointercal file will appear in the /usr/local/tslib/etc folder
at last, you can test by.
And it’ll happen like this……..
If you want to configure the file permanently, you can export the file in /home/pi/.profile
Alright…. TSLIB installation’s done… you can apply many application like Qt button or XMBC to make portable multimedia player without your mouse… so easy installing ….
Hope this article is helpful for you more or less…
See you in next article….. Hope you enjoyed programming :]