get_motor_old
- get_motor_old(channel: int, angles: list[int]) MotorOld | NullMotor[source]
Factory function to create and initialize a Motor instance.
- Parameters:
channel (int) – The GPIO channel number.
angles (list[int]) – A list containing [open_angle, close_angle].
- Returns:
An initialized Motor instance.
- Return type: