Skip to content
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

Add PEN_UP_DOWN_MENU for POLARGRAPH #25303

Merged
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
5 changes: 3 additions & 2 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -878,8 +878,9 @@
// Enable for Polargraph Kinematics
//#define POLARGRAPH
#if ENABLED(POLARGRAPH)
#define POLARGRAPH_MAX_BELT_LEN 1035.0
#define DEFAULT_SEGMENTS_PER_SECOND 5
#define POLARGRAPH_MAX_BELT_LEN 1035.0 // (mm) Belt length at full extension. Override with M665 H.
#define DEFAULT_SEGMENTS_PER_SECOND 5 // Move segmentation based on duration
#define PEN_UP_DOWN_MENU // Add "Pen Up" and "Pen Down" to the MarlinUI menu
#endif

// @section delta
Expand Down
2 changes: 2 additions & 0 deletions Marlin/src/lcd/language/language_en.h
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ namespace Language_en {
LSTR MSG_TOUCHMI_SAVE = _UxGT("Save");
LSTR MSG_MANUAL_DEPLOY_TOUCHMI = _UxGT("Deploy TouchMI");
LSTR MSG_MANUAL_DEPLOY = _UxGT("Deploy Z-Probe");
LSTR MSG_MANUAL_PENUP = _UxGT("Pen up");
LSTR MSG_MANUAL_PENDOWN = _UxGT("Pen down");
LSTR MSG_MANUAL_STOW = _UxGT("Stow Z-Probe");
LSTR MSG_HOME_FIRST = _UxGT("Home %s First");
LSTR MSG_ZPROBE_SETTINGS = _UxGT("Probe Settings");
Expand Down
7 changes: 7 additions & 0 deletions Marlin/src/lcd/menu/menu_motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,13 @@ void menu_motion() {
#endif

//
// Pen up/down menu
//
#if ENABLED(PEN_UP_DOWN_MENU)
GCODES_ITEM(MSG_MANUAL_PENUP, F("M280 P0 S90"));
GCODES_ITEM(MSG_MANUAL_PENDOWN, F("M280 P0 S50"));
#endif

// Probe Offset Wizard
//
#if ENABLED(PROBE_OFFSET_WIZARD)
Expand Down
2 changes: 2 additions & 0 deletions Marlin/src/module/motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,8 @@ void restore_feedrate_and_scaling() {
#if BOTH(HAS_HOTEND_OFFSET, DELTA)
// The effector center position will be the target minus the hotend offset.
const xy_pos_t offs = hotend_offset[active_extruder];
#elif ENABLED(POLARGRAPH)
// POLARGRAPH uses draw_area_* below...
#elif ENABLED(POLAR)
// For now, we don't limit POLAR
#else
Expand Down