Commit c4e177c4 authored by Adam Blank's avatar Adam Blank
Browse files

Update morse_engine.py

parent 9a136dc3
No related merge requests found
Showing with 4 additions and 6 deletions
+4 -6
......@@ -49,14 +49,12 @@ def run_morse_engine(apds, pixels, touch):
pixels: LED controller object.
touch: touch sensor for confirming input.
"""
down = None # Time when proximity sensor was first triggered
elapsed = 0 # Duration proximity sensor has been triggered
message = "" # Translated part of message
letter = "" # Dots and dashes of current (unfinished) letter
morse = "" # Dots, dashs, and slashes so far
start = time.monotonic() # Time when proximity sensor was first triggered
# Main loop
while True:
if touch.value:
print("Touched!")
print(message, letter, "<==")
print("the message should be here", "<==")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment