Skip to content
This repository was archived by the owner on Feb 21, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DrawGcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def file_reader(filename):
elif "M280" in line:
if "P0" in line and "S" in line:
s = readKey(line, "S")
if s >= 40:
if s >= 35:
pen = True
elif s == 0:
pen = False
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ A simple program that allows the graphical preview of .gcode files by utilising
Mainly written for internal use in teaching the workings of G-code.

Since it is written for use with a plotter only 2D G-codes are supported. The pen is controlled via M280 P0 S? commands
S>40 is interpreted as pen down, S=0 is interpreted as pen up.
S>35 is interpreted as pen down, S=0 is interpreted as pen up.

Supported commands:
G28
Expand Down