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