From 0016b1b80353ecc7f0f3182da3a97f33e9e6dc35 Mon Sep 17 00:00:00 2001 From: Jason Huggins Date: Thu, 29 Aug 2024 14:56:57 -0500 Subject: [PATCH] Update for touch support --- source/machine-setup.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source/machine-setup.py b/source/machine-setup.py index 93b1bac..f6587f6 100644 --- a/source/machine-setup.py +++ b/source/machine-setup.py @@ -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 @@ -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;