gpio: only setmode if it hasn't been set yet
This commit is contained in:
@@ -7,7 +7,10 @@ def main():
|
||||
motor = Motor([13, 19, 26])
|
||||
motor.setup()
|
||||
motor.set_speed(10)
|
||||
motor.step(24 * 2)
|
||||
|
||||
while True:
|
||||
input()
|
||||
motor.step(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user