axi/axi/util.py

14 lines
289 B
Python
Raw Normal View History

2017-01-08 03:22:28 +00:00
from .device import Device
def reset():
d = Device()
d.disable_motors()
d.pen_up()
2017-04-03 01:07:51 +00:00
def draw(drawing, progress=True):
2017-01-08 03:22:28 +00:00
# TODO: support drawing, list of paths, or single path
d = Device()
d.enable_motors()
2017-04-03 01:07:51 +00:00
d.run_drawing(drawing, progress)
2017-01-08 03:22:28 +00:00
d.disable_motors()