*Fixed some more tabbing
This commit is contained in:
parent
399ca71d92
commit
a889414460
1 changed files with 3 additions and 3 deletions
|
|
@ -118,11 +118,11 @@ class Adafruit_StepperMotor:
|
|||
if (style == Adafruit_MotorHAT.MICROSTEP):
|
||||
if (self.currentstep >= 0) and (self.currentstep < self.MICROSTEPS):
|
||||
coils = [1, 1, 0, 0]
|
||||
elif (self.currentstep >= self.MICROSTEPS) and (self.currentstep < self.MICROSTEPS*2):
|
||||
elif (self.currentstep >= self.MICROSTEPS) and (self.currentstep < self.MICROSTEPS*2):
|
||||
coils = [0, 1, 1, 0]
|
||||
elif (self.currentstep >= self.MICROSTEPS*2) and (self.currentstep < self.MICROSTEPS*3):
|
||||
elif (self.currentstep >= self.MICROSTEPS*2) and (self.currentstep < self.MICROSTEPS*3):
|
||||
coils = [0, 0, 1, 1]
|
||||
elif (self.currentstep >= self.MICROSTEPS*3) and (self.currentstep < self.MICROSTEPS*4):
|
||||
elif (self.currentstep >= self.MICROSTEPS*3) and (self.currentstep < self.MICROSTEPS*4):
|
||||
coils = [1, 0, 0, 1]
|
||||
else:
|
||||
step2coils = [ [1, 0, 0, 0],
|
||||
|
|
|
|||
Loading…
Reference in a new issue