This is a driver for GT811 touch sensor display and any RaspberryPi.
Connect I2C to GPIO02, GPIO03 and INT to GPIO04.
Make, GCC, Wiring PI and kernel module build files.
git clone --recursive git@github.com:kargeor/gt811-virtual_touchscreen.gitcd gt811-virtual_touchscreenmake./patch_virtual_touchscreen.shcd virtual_touchscreenmake
Open I2C and write coordinates to screen with debug output:
sudo ./gt811-virtual_touchscreen -d
sudo cp virtual_touchscreen.ko /lib/modules/`uname -r`/kernel/drivers/input/misc/-- you might need to select a different location based on your linux installsudo depmodsudo modprobe virtual_touchscreen-- this only stays until reboot- Add
virtual_touchscreento/etc/modulesto auto load - Check:
lsmod | grep virtual_touchscreen
Send to kernel module:
sudo ./gt811-virtual_touchscreen -o /dev/virtual_touchscreen
sudo cp gt811-virtual_touchscreen /usr/bin/gt811-virtual_touchscreen- Install the provided script in
init.d
git clone https://github.com/Airblader/unclutter-xfixes.gitcd unclutter-xfixesmakesudo cp unclutter /usr/bin/unclutterDISPLAY=:0 unclutter --hide-on-touch(temporary)- For permanent...