|
68 | 68 |
|
69 | 69 | _MOTOR1 = (22, 23)
|
70 | 70 | _MOTOR2 = (19, 18)
|
71 |
| -_MOTOR_ALL = _MOTOR1 + _MOTOR2 |
| 71 | +# Order as needed for steppers. |
| 72 | +_MOTOR_STEPPER = _MOTOR1 + _MOTOR2 |
72 | 73 |
|
73 | 74 | _DRIVE1 = const(13)
|
74 | 75 | _DRIVE2 = const(12)
|
75 | 76 | _DRIVE3 = const(43)
|
76 | 77 | _DRIVE4 = const(42)
|
77 | 78 |
|
78 |
| -_DRIVE_ALL = (_DRIVE1, _DRIVE2, _DRIVE3, _DRIVE4) |
| 79 | +# Order as needed for steppers. |
| 80 | +_DRIVE_STEPPER = (_DRIVE1, _DRIVE3, _DRIVE2, _DRIVE4) |
| 81 | + |
79 | 82 |
|
80 | 83 | _TOUCH1 = const(4)
|
81 | 84 | _TOUCH2 = const(5)
|
@@ -232,17 +235,17 @@ def dc_motor_2(self):
|
232 | 235 | @property
|
233 | 236 | def stepper_motor(self):
|
234 | 237 | """``adafruit_motor.motor.StepperMotor`` object on Motor 1 and Motor 2 terminals"""
|
235 |
| - return self._motor(_MOTOR_ALL, StepperMotor) |
| 238 | + return self._motor(_MOTOR_STEPPER, StepperMotor) |
236 | 239 |
|
237 | 240 | @property
|
238 | 241 | def drive_stepper_motor(self):
|
239 | 242 | """``adafruit_motor.motor.StepperMotor`` object on Drive terminals"""
|
240 |
| - return self._motor(_DRIVE_ALL, StepperMotor) |
| 243 | + return self._motor(_DRIVE_STEPPER, StepperMotor) |
241 | 244 |
|
242 | 245 | @property
|
243 | 246 | def feather_drive_stepper_motor(self):
|
244 | 247 | """``adafruit_motor.motor.StepperMotor`` object on Drive terminals on Crickit FeatherWing"""
|
245 |
| - return self._motor(reversed(_DRIVE_ALL), StepperMotor) |
| 248 | + return self._motor(reversed(_DRIVE_STEPPER), StepperMotor) |
246 | 249 |
|
247 | 250 | def _motor(self, terminals, motor_class):
|
248 | 251 | device = self._devices.get(terminals, None)
|
|
0 commit comments