from gcode_compiler import * axes = [] @macro def do_square(x,y,w=50,h=50): if not axes[0].homed: home(x=True) else: home(y=True) home() move(x, y, 0, 0) extrusion = 50 move(x, y, 0, extrusion) move(x+w, y, 0, extrusion) move(x+w, y+h, 0, extrusion) move(x, y+h, 0, extrusion) move(x, y, 0, extrusion) print("test") print(input("input"))