This is the touch listener used in the Clear-Sight prototype.
-
Make sure that you have correctly installed Raspberry Pi OS.
-
Copy the files in the repository to the device, e.g., using git or scp:
$ scp .\prototype-transparent-tablet\touch-raspberry\* [email protected]:~/touch-server/
-
Compile the touch listener binary, precompiled binaries are also in the repository:
$ gcc -o touchlistener touchlistener.c
-
Use chmod to make server.sh executable if it isn't.
-
Edit server.sh as needed, changing device name or IP address. Make sure the file has correct Unix style line endings!
-
Add server.sh to autostart:
$ sudo crontab -e Add the following lines: # automatically starts the server a few seconds after reboot @reboot /bin/sleep 30 ; "/home/pi/touch-server/server.sh" # switches power saving off for Wifi @reboot /sbin/iwconfig wlan0 power off