Skip to content

config

cmd_set_id(ctx, current_id, new_id) #

Change the ID of a servo.

Source code in cogip/tools/scservo_async/config.py
11
12
13
14
15
16
17
18
19
def cmd_set_id(
    ctx: typer.Context,
    current_id: Annotated[int, typer.Argument(help="Current ID of the servo.")],
    new_id: Annotated[int, typer.Argument(help="New ID to assign.")],
):
    """
    Change the ID of a servo.
    """
    asyncio.run(async_set_id(ctx, current_id, new_id))