Skip to content

stepper_motor

frog.hardware.plugins.stepper_motor ¤

Code for interfacing with stepper motors.

Classes¤

Functions¤

get_stepper_motor_instance() ¤

Get the instance of the current stepper motor device if connected or None.

Source code in frog/hardware/plugins/stepper_motor/__init__.py
7
8
9
def get_stepper_motor_instance() -> StepperMotorBase | None:
    """Get the instance of the current stepper motor device if connected or None."""
    return get_device_instance(StepperMotorBase)