imldresden / CleAR-Sight-TouchListener

Home Page:https://imld.de/clear-sight

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CleAR-Sight Touch Listener

This is the touch listener used in the Clear-Sight prototype.

Installation

  1. Make sure that you have correctly installed Raspberry Pi OS.

  2. Copy the files in the repository to the device, e.g., using git or scp:

    $ scp .\prototype-transparent-tablet\touch-raspberry\* pi@XXX.XXX.XXX.XXX:~/touch-server/
  3. Compile the touch listener binary, precompiled binaries are also in the repository:

    $ gcc -o touchlistener touchlistener.c
  4. Use chmod to make server.sh executable if it isn't.

  5. Edit server.sh as needed, changing device name or IP address. Make sure the file has correct Unix style line endings!

  6. 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

About

https://imld.de/clear-sight

License:GNU General Public License v2.0


Languages

Language:C 99.2%Language:Shell 0.8%