fix: bridge.py - make part-neutral so part-1 download stops referencing part-2 files

The shared bridge shipped in both posts named Main.gd and
JoystickBridge.ino in its docstring and --baud help — so the part-1
(LED basics) download referenced files absent from its own project.
Neutralize the wording ("Godot", "the .ino sketch") so the same bridge
reads correctly in both downloads.
This commit is contained in:
tyler parker
2026-08-10 17:01:09 -06:00
parent 28339f198f
commit f3f9d90cd0
2 changed files with 4 additions and 4 deletions
@@ -1,6 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
""" """
bridge.py — serial <-> UDP relay between the Arduino Uno and Godot (Main.gd) bridge.py — serial <-> UDP relay between the Arduino Uno and Godot
Godot never touches the serial port; it only speaks UDP: Godot never touches the serial port; it only speaks UDP:
* it LISTENS on 127.0.0.1:4242 for telemetry ("x,y,btn") * it LISTENS on 127.0.0.1:4242 for telemetry ("x,y,btn")
@@ -113,7 +113,7 @@ def run(port: str, baud: int) -> None:
def main() -> None: def main() -> None:
ap = argparse.ArgumentParser(description="Arduino <-> Godot serial/UDP bridge") ap = argparse.ArgumentParser(description="Arduino <-> Godot serial/UDP bridge")
ap.add_argument("--port", help="serial port, e.g. COM3 (auto-detected if omitted)") ap.add_argument("--port", help="serial port, e.g. COM3 (auto-detected if omitted)")
ap.add_argument("--baud", type=int, default=115200, help="must match JoystickBridge.ino") ap.add_argument("--baud", type=int, default=115200, help="must match the .ino sketch")
args = ap.parse_args() args = ap.parse_args()
try: try:
@@ -1,6 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
""" """
bridge.py — serial <-> UDP relay between the Arduino Uno and Godot (Main.gd) bridge.py — serial <-> UDP relay between the Arduino Uno and Godot
Godot never touches the serial port; it only speaks UDP: Godot never touches the serial port; it only speaks UDP:
* it LISTENS on 127.0.0.1:4242 for telemetry ("x,y,btn") * it LISTENS on 127.0.0.1:4242 for telemetry ("x,y,btn")
@@ -113,7 +113,7 @@ def run(port: str, baud: int) -> None:
def main() -> None: def main() -> None:
ap = argparse.ArgumentParser(description="Arduino <-> Godot serial/UDP bridge") ap = argparse.ArgumentParser(description="Arduino <-> Godot serial/UDP bridge")
ap.add_argument("--port", help="serial port, e.g. COM3 (auto-detected if omitted)") ap.add_argument("--port", help="serial port, e.g. COM3 (auto-detected if omitted)")
ap.add_argument("--baud", type=int, default=115200, help="must match JoystickBridge.ino") ap.add_argument("--baud", type=int, default=115200, help="must match the .ino sketch")
args = ap.parse_args() args = ap.parse_args()
try: try: