Skip to content

Instantly share code, notes, and snippets.

View aucrawford's full-sized avatar

A. U. Crawford aucrawford

View GitHub Profile
Start G-code
G28 ;Move X/Y/Z to min endstops
G1 Z0.28 ;Lift nozzle a bit
G92 E0 ;Specify current extruder position as zero
G1 Y3 F1800 ;Move Y to purge point
G1 X60 E25 F500 ;Extrude 25mm of filament in a 5cm line
G92 E0 ;Zero the extruded length again
G1 E-2 F500 ;Retract a little
G1 X70 F4000 ;Quickly wipe away from the filament line