svg2gcode/config.py

24 lines
577 B
Python
Raw Normal View History

2022-06-13 15:19:01 +02:00
"""Bed width in mm"""
bed_max_x = 376
2022-06-13 12:45:47 +02:00
2022-06-13 15:19:01 +02:00
"""Bed height in mm"""
bed_max_y = 315
2022-06-13 12:45:47 +02:00
"""X/Y speed in mm/minute"""
2022-06-13 15:19:01 +02:00
xy_speed = 50
2022-06-13 12:45:47 +02:00
"""G-code emitted at the start of processing the SVG file"""
2022-06-13 15:19:01 +02:00
preamble = "G90 ;Absolute programming\nG21 ;Programming in millimeters (mm)\nM5 ;Disable laser\n"
2022-06-13 12:45:47 +02:00
"""G-code emitted at the end of processing the SVG file"""
2022-06-13 15:19:01 +02:00
postamble = "G1 X0.0 Y0.0; Display printbed\nM02 ;End of program\n"
2022-06-13 12:45:47 +02:00
"""
Used to control the smoothness/sharpness of the curves.
Smaller the value greater the sharpness. Make sure the
value is greater than 0.1
"""
2022-06-13 15:19:01 +02:00
smoothness = 0.2
2022-06-13 12:45:47 +02:00