← Back to ratslair.com
aboutsummaryrefslogtreecommitdiff
path: root/control.py
diff options
context:
space:
mode:
authorEdvin <[email protected]>2025-04-09 15:40:25 +0200
committerEdvin <[email protected]>2025-04-09 15:40:25 +0200
commit1a837cbe411b4522582d323454a03ef02e9dd292 (patch)
treeeaa25999305acf4198cf2825149a4fb3d8943c60 /control.py
parentf52ccfbd1644d3059e67c6e04a91b2c275b307f8 (diff)
Functional two-way communication
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")