mirror of
https://gitlab.ewi.tudelft.nl/ee2l1/2025-2026/A.K.03.git
synced 2025-12-12 16:00:56 +01:00
More ui, now beacons work on spacebar.
This commit is contained in:
parent
1655982316
commit
6f2ed5c5e9
@ -115,6 +115,9 @@ if __name__ == "__main__":
|
||||
#last_key = key
|
||||
except AttributeError:
|
||||
key_queue.put(str(key))
|
||||
if str(key) == "Key.space":
|
||||
car.toggle_beacon()
|
||||
beacon_label.config(text=f"Beacon {car.get_beacon_state()}")
|
||||
|
||||
def on_release(key):
|
||||
# Stop listener if ESC is pressed
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user