We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4701a64 commit bdf122dCopy full SHA for bdf122d
adafruit_motor/stepper.py
@@ -113,7 +113,10 @@ def __init__(
113
# set a safe pwm freq for each output
114
self._coil = (ain2, bin1, ain1, bin2)
115
for i in range(4):
116
- if self._coil[i].frequency < 1500 and not self._coil[i].variable_frequency:
+ if (
117
+ self._coil[i].frequency < 1500
118
+ and not self._coil[i].variable_frequency
119
+ ):
120
raise ValueError(
121
"PWMOut outputs must either be set to at least "
122
"1500 Hz or allow variable frequency."
0 commit comments