diff --git a/README.md b/README.md index c92d2b3..299330b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/scripts/configure_motor.py b/scripts/configure_motor.py index 99cfa56..7d35ee2 100644 --- a/scripts/configure_motor.py +++ b/scripts/configure_motor.py @@ -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