added cli

This commit is contained in:
arcadeperfect committed 2020-01-01 16:36:00 -05:00
1 parent 0ff4afa45f
commit d728a8eba4
1 file changed
+1
+1
View File
@@ -142,6 +142,7 @@ def generate_gcode(path, autoScale = True):
commands.append(postamble)
return commands
def g_string(x, y, z=False, prefix="G1", p=3):
if z is not False:
return f"{prefix} X{x:.{p}f} Y{y:.{p}f} Z{z:.{p}f}"