]>
wolfpit.net Git - hardware/fuck_tomatoes/.git/blob - utils/Gcode.py
64d658e1df5e3e13d13a8f038faf1c4dc918dce9
1 from utils
import Geometry
3 def buildGcodePackage(points
, xyMax
):
6 if Geometry
.pointWithinBounds(point
, xyMax
):
8 package
+= 'G0 X{:.1f} Y{:.1f}\n'.format(x
, y
)
9 package
+= 'M106 S300\nG4 P500\nM107\n'
10 package
+= 'G0 X0 Y0\n'