Skip to content

Commit

Permalink
Update for touch support
Browse files Browse the repository at this point in the history
  • Loading branch information
hugs authored Aug 29, 2024
1 parent f563193 commit 0016b1b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions source/machine-setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ def shell(command):
# Install required Python core libs
shell("sudo apt-get update")
shell("sudo apt-get upgrade -y")
shell("sudo apt-get install -y vim git python3-pip")
shell("sudo apt-get install --upgrade python3-setuptools")
shell("sudo apt-get install -y python3.11-venv")
shell("sudo apt-get install -y expect git vim python3-pip")
shell("sudo apt-get install -y --upgrade python3-setuptools")
shell("sudo apt-get install -y python3-venv")

# Raspberry Pi Config
shell("sudo raspi-config nonint do_vnc 0") #Enable VNC
Expand Down Expand Up @@ -41,11 +41,12 @@ def shell(command):
source env/bin/activate;
git clone https://github.com/tapsterbot/zero-hid.git;
cd zero-hid;
git checkout dev""")
git checkout touch-support""")

# Install usb_gadget
shell("cd /home/tapster/Projects/valet/zero-hid/usb_gadget; chmod +x installer.bash;")
shell("cd /home/tapster/Projects/valet/zero-hid/usb_gadget; sudo ./installer.bash;")
shell("cd /home/tapster/Projects/valet/zero-hid/usb_gadget; chmod +x installer;")
shell("""cd /home/tapster/Projects/valet/zero-hid/usb_gadget;
sudo expect -c 'spawn ./installer; expect "Do you want to reboot? (Y/n)"; send "n\n"; interact';""")

# Install zero-hid library
shell("""cd /home/tapster/Projects/valet;
Expand Down

0 comments on commit 0016b1b

Please sign in to comment.