From 1a837cbe411b4522582d323454a03ef02e9dd292 Mon Sep 17 00:00:00 2001 From: Edvin Date: Wed, 9 Apr 2025 15:40:25 +0200 Subject: Functional two-way communication --- control.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'control.py') 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") -- cgit v1.2.3