MotorOld

class MotorOld(pin: int, values: list[int], worker: _ChipWorker)[source]

Bases: Motor

A corridor door servo of the old HAT (OLD_VERSION), wired directly to a hardware PWM pin (12 or 13) instead of a PCA9685 channel.

It moves, ramps (time_open/time_close) and holds exactly like Motor; only the writes to the hardware differ. Its angles keep the old pulse range (0-180 deg -> 0.5-2.5 ms), so the saved angles of old setups still work.

__init__(pin: int, values: list[int], worker: _ChipWorker) → None[source]

Methods