Add executables dir & Encoder class
This commit is contained in:
0
motor_passo/exec/motor/__init__.py
Normal file
0
motor_passo/exec/motor/__init__.py
Normal file
14
motor_passo/exec/motor/__main__.py
Normal file
14
motor_passo/exec/motor/__main__.py
Normal 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()
|
||||
Reference in New Issue
Block a user