guest_worker/disable_motors.py

17 lines
299 B
Python
Raw Normal View History

from pyaxidraw import axidraw
ad = axidraw.AxiDraw()
# connect/disconnect once because often first connection attempt fails
ad.interactive()
ad.connect()
ad.pen_raise()
ad.disconnect()
ad.plot_setup()
ad.pen_raise()
ad.options.mode = "manual"
ad.options.manual_cmd = "disable_xy"
ad.plot_run()