diff options
| author | Edvin <[email protected]> | 2025-04-09 15:40:25 +0200 |
|---|---|---|
| committer | Edvin <[email protected]> | 2025-04-09 15:40:25 +0200 |
| commit | 1a837cbe411b4522582d323454a03ef02e9dd292 (patch) | |
| tree | eaa25999305acf4198cf2825149a4fb3d8943c60 /control.py | |
| parent | f52ccfbd1644d3059e67c6e04a91b2c275b307f8 (diff) | |
Functional two-way communication
Diffstat (limited to 'control.py')
| -rw-r--r-- | control.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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") |
