Add executables dir & Encoder class

This commit is contained in:
2023-10-29 20:56:03 -03:00
parent a066b13d20
commit 2d782959a2
6 changed files with 67 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
from motor_passo.motor import Motor
from motor_passo.utils import setup_cleanup
def main():
setup_cleanup()
motor = Motor([13, 19, 26])
motor.setup()
motor.set_speed(10)
motor.step(24 * 2)
if __name__ == "__main__":
main()