From f3f9d90cd005e44a9bd58ae10ac1abd8edca4335 Mon Sep 17 00:00:00 2001 From: tyler parker Date: Mon, 10 Aug 2026 17:01:09 -0600 Subject: [PATCH] fix: bridge.py - make part-neutral so part-1 download stops referencing part-2 files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- godot-arduino-1-led-first-light/arduino/bridge/bridge.py | 4 ++-- godot-arduino-2-joystick-dashboard/arduino/bridge/bridge.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/godot-arduino-1-led-first-light/arduino/bridge/bridge.py b/godot-arduino-1-led-first-light/arduino/bridge/bridge.py index c031948..e40e97e 100644 --- a/godot-arduino-1-led-first-light/arduino/bridge/bridge.py +++ b/godot-arduino-1-led-first-light/arduino/bridge/bridge.py @@ -1,6 +1,6 @@ #!/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: * 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: 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("--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() try: diff --git a/godot-arduino-2-joystick-dashboard/arduino/bridge/bridge.py b/godot-arduino-2-joystick-dashboard/arduino/bridge/bridge.py index c031948..e40e97e 100644 --- a/godot-arduino-2-joystick-dashboard/arduino/bridge/bridge.py +++ b/godot-arduino-2-joystick-dashboard/arduino/bridge/bridge.py @@ -1,6 +1,6 @@ #!/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: * 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: 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("--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() try: