# Tools

Scripts that convert or otherwise work with G-Code.

## convert_lasergrbl.py

Converts output from LaserGRBL to a format that can be understood by the Marlin firmware.

## outline_gcode.py

Takes all G1 move coordinates from a G-Code files to get the bounding box of the object, minimum and maximum coordinates in x and y axis.
Then produces a whole lot of low-power moves along this bounding box.

Useful to proplery place stock material on a laser cutting machine.

## gcode_center_outline.py

Combines the previous two scripts.
First cleans up G-Code from LaserGRBL like in `convert_lasergrbl.py`.
Also creates an outline as a separate file, like in `outline_gcode.py`.
Both are then shifted as well to the center of my machine.

Machine size is hardcoded in the script.

## send_gcode.py

Simple G-Code sender using pySerial to access serial port.
For use with Marlin and possibly other RepRap compatible firmwares.