gpio: only setmode if it hasn't been set yet

This commit is contained in:
2023-10-29 20:56:03 -03:00
parent 11b2c845ac
commit 7df3639923
4 changed files with 17 additions and 14 deletions

View File

@@ -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__":