Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs1-24fa
project03
Commits
1e48c54e
Commit
1e48c54e
authored
6 months ago
by
Antonio Caceres
Browse files
Options
Download
Email Patches
Plain Diff
Replace placeholder code with '...'.
parent
ef251764
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/morse_code.py
+1
-1
src/morse_code.py
src/morse_engine.py
+2
-2
src/morse_engine.py
src/prox_pulse.py
+1
-1
src/prox_pulse.py
src/pulse.py
+1
-1
src/pulse.py
with
5 additions
and
5 deletions
+5
-5
src/morse_code.py
View file @
1e48c54e
...
...
@@ -34,4 +34,4 @@ def translate_message(morse: str) -> str:
encountered, they are ignored. If the last potential symbol is not
valid, it is appended as is (i.e., as dots and dashes).
"""
return
None
...
This diff is collapsed.
Click to expand it.
src/morse_engine.py
View file @
1e48c54e
...
...
@@ -25,7 +25,7 @@ def set_color(elapsed_t: float, px: LEDController):
elapsed_t (float): duration of proximity detection.
px : LED controller object.
"""
pass
...
def
add_mark
(
elapsed_t
:
float
)
->
str
:
...
...
@@ -39,7 +39,7 @@ def add_mark(elapsed_t: float) -> str:
Returns:
str: dot (.), dash (-), or empty ("").
"""
pass
...
def
run_morse_engine
(
apds
:
ProximitySensor
,
pixels
:
LEDController
,
touch
:
TouchSensor
):
...
...
This diff is collapsed.
Click to expand it.
src/prox_pulse.py
View file @
1e48c54e
...
...
@@ -17,7 +17,7 @@ def prox_pulse(px: LEDController, color: tuple[int, int, int], prox: int) -> Non
color (tuple): color to pulse.
prox (int): proximity value.
"""
pass
# Delete this line when you start coding!
...
def
run_prox_pulse
(
apds
:
ProximitySensor
,
pixels
:
LEDController
)
->
None
:
...
...
This diff is collapsed.
Click to expand it.
src/pulse.py
View file @
1e48c54e
...
...
@@ -16,7 +16,7 @@ def pulse(px: LEDController, color: tuple[int, int, int], duration: float):
color (tuple): Color to display.
duration (float): time in seconds to keep the color on/off.
"""
pass
# Delete this line when you start coding!
...
def
run_simple_pulse
(
pixels
:
LEDController
):
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help