chip

Functions

get_motor(channel, values, pwm, worker)

Factory function to create and initialize a Motor instance.

get_motor_if_active(key, index_key, ...)

Builds a Motor from its settings if the key presence flag is ON.

get_motor_old(channel, values)

Factory function to create and initialize a MotorOld instance.

parse_motor_values(values)

Unpack MOTOR*_VALUES into (open, close, time_open, time_close, hold).

Classes

LED(channel, n_channels, pwm)

Motor(channel, values, pwm, worker)

MotorOld(pin, values, worker)

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.