diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2f9163b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Run Tests + +on: [pull_request, push] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Set up Python 3.6 + uses: actions/setup-python@v1 + with: + python-version: 3.6 + - name: Versions + run: | + python3 --version + - name: Checkout Current Repo + uses: actions/checkout@v1 + with: + submodules: true + - name: Install pytest + run: pip install pytest + - name: Install locally + run: pip install . + - name: Run tests + run: pytest diff --git a/adafruit_motor/stepper.py b/adafruit_motor/stepper.py index b3c9bd8..2dfe614 100755 --- a/adafruit_motor/stepper.py +++ b/adafruit_motor/stepper.py @@ -73,13 +73,13 @@ class StepperMotor: **PWM** - :param ~pulseio.PWMOut ain1: ``pulseio.PWMOut``-compatible output connected to the driver for + :param ~pwmio.PWMOut ain1: `pwmio.PWMOut`-compatible output connected to the driver for the first coil (unipolar) or first input to first coil (bipolar). - :param ~pulseio.PWMOut ain2: ``pulseio.PWMOut``-compatible output connected to the driver for + :param ~pwmio.PWMOut ain2: `pwmio.PWMOut`-compatible output connected to the driver for the third coil (unipolar) or second input to first coil (bipolar). - :param ~pulseio.PWMOut bin1: ``pulseio.PWMOut``-compatible output connected to the driver for + :param ~pwmio.PWMOut bin1: `pwmio.PWMOut`-compatible output connected to the driver for the second coil (unipolar) or second input to second coil (bipolar). - :param ~pulseio.PWMOut bin2: ``pulseio.PWMOut``-compatible output connected to the driver for + :param ~pwmio.PWMOut bin2: `pwmio.PWMOut`-compatible output connected to the driver for the fourth coil (unipolar) or second input to second coil (bipolar). :param int microsteps: Number of microsteps between full steps. Must be at least 2 and even.