We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c5aa69 commit ac76b45Copy full SHA for ac76b45
morseinterpreter.py
@@ -46,9 +46,11 @@
46
"!": "--..--",
47
" ": " "}
48
49
+
50
def pinLed(pin):
51
return machine.Pin(pin, machine.Pin.OUT)
52
53
54
def flash(pin, sec):
55
pin.value(False)
56
time.sleep(sec)
@@ -57,8 +59,9 @@ def flash(pin, sec):
57
59
58
60
return
61
62
63
def send(pin,
- message="Hola mundo!",
64
+ message="Bienvenido!",
65
short=0.5):
66
"""
67
message: mensaje a interpretar (por defecto: Hola mundo!")
@@ -92,12 +95,12 @@ def send(pin,
92
95
93
96
if e == " ":
94
97
flash(pin, space)
-
98
99
try:
100
send(pin=pinLed(16))
101
102
except KeyboardInterrupt:
103
print("Se ha interrumpido el programa")
104
105
else:
- print("Programa finalizado")
106
+ print("Programa finalizado")
0 commit comments