Merge branch 'v2' of github.com:apirrone/mini_BDX_runtime into v2

This commit is contained in:
apirrone 2025-04-06 12:06:36 +02:00
commit 57752fa127
2 changed files with 5 additions and 4 deletions

View file

@ -91,6 +91,8 @@ python3 scripts/test_xbox_controller.py
## Speaker wiring and configuration
Follow this tutorial
> For now, don't activate `/dev/zero` when they ask
https://learn.adafruit.com/adafruit-max98357-i2s-class-d-mono-amp?view=all

View file

@ -7,13 +7,12 @@ DEFAULT_ID = 1 # A brand new motor should have id 1
parser = argparse.ArgumentParser()
parser.add_argument(
"--port",
help="The port the motor is connected to. Default is /dev/ttyACM0",
help="The port the motor is connected to. Default is /dev/ttyACM0. Use `ls /dev/tty* | grep usb` to find the port.",
default="/dev/ttyACM0",
)
parser.add_argument("--new_id", help="The id to set to the motor.", type=str, required=True)
parser.add_argument("--id", help="The id to set to the motor.", type=str, required=True)
args = parser.parse_args()
io = FeetechSTS3215IO("/dev/ttyACM0")
io = FeetechSTS3215IO(args.port)
current_id = DEFAULT_ID