← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/control.py
diff options
context:
space:
mode:
Diffstat (limited to 'control.py')
-rw-r--r--control.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/control.py b/control.py
index 8fa33cd..f86d3bf 100644
--- a/control.py
+++ b/control.py
@@ -26,7 +26,7 @@ print("Connected to %s." % pi)
input = "0"
-while input != "a":
+while input != "q":
input = get_input()
print("Sending: %s" % input)
@@ -38,6 +38,8 @@ while input != "a":
sock.send("33")
elif input == "k":
sock.send("22")
+ elif input == "q":
+ sock.send("1000")
else:
sock.send("0")