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