Skip to content

Adjust pen down to S35 so that it is put down gently in the real plotter #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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