Skip to content

Commit d71d038

Browse files
i-make-robotsTracy Spiva
authored and
Tracy Spiva
committed
✨ POLARGRAPH / PEN_UP_DOWN_MENU (MarlinFirmware#25303)
Co-authored-by: Dan Royer <1464454+i-make-robots@users.noreply.github.com>
1 parent d9900fc commit d71d038

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

Marlin/Configuration.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -877,8 +877,9 @@
877877
// Enable for Polargraph Kinematics
878878
//#define POLARGRAPH
879879
#if ENABLED(POLARGRAPH)
880-
#define POLARGRAPH_MAX_BELT_LEN 1035.0
881-
#define DEFAULT_SEGMENTS_PER_SECOND 5
880+
#define POLARGRAPH_MAX_BELT_LEN 1035.0 // (mm) Belt length at full extension. Override with M665 H.
881+
#define DEFAULT_SEGMENTS_PER_SECOND 5 // Move segmentation based on duration
882+
#define PEN_UP_DOWN_MENU // Add "Pen Up" and "Pen Down" to the MarlinUI menu
882883
#endif
883884

884885
// @section delta

Marlin/src/lcd/language/language_en.h

+2
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,8 @@ namespace Language_en {
596596
LSTR MSG_TOUCHMI_SAVE = _UxGT("Save");
597597
LSTR MSG_MANUAL_DEPLOY_TOUCHMI = _UxGT("Deploy TouchMI");
598598
LSTR MSG_MANUAL_DEPLOY = _UxGT("Deploy Z-Probe");
599+
LSTR MSG_MANUAL_PENUP = _UxGT("Pen up");
600+
LSTR MSG_MANUAL_PENDOWN = _UxGT("Pen down");
599601
LSTR MSG_MANUAL_STOW = _UxGT("Stow Z-Probe");
600602
LSTR MSG_HOME_FIRST = _UxGT("Home %s First");
601603
LSTR MSG_ZPROBE_SETTINGS = _UxGT("Probe Settings");

Marlin/src/lcd/menu/menu_motion.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,13 @@ void menu_motion() {
360360
#endif
361361

362362
//
363+
// Pen up/down menu
364+
//
365+
#if ENABLED(PEN_UP_DOWN_MENU)
366+
GCODES_ITEM(MSG_MANUAL_PENUP, F("M280 P0 S90"));
367+
GCODES_ITEM(MSG_MANUAL_PENDOWN, F("M280 P0 S50"));
368+
#endif
369+
363370
// Probe Offset Wizard
364371
//
365372
#if ENABLED(PROBE_OFFSET_WIZARD)

Marlin/src/module/motion.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,8 @@ void restore_feedrate_and_scaling() {
931931
#if BOTH(HAS_HOTEND_OFFSET, DELTA)
932932
// The effector center position will be the target minus the hotend offset.
933933
const xy_pos_t offs = hotend_offset[active_extruder];
934+
#elif ENABLED(POLARGRAPH)
935+
// POLARGRAPH uses draw_area_* below...
934936
#elif ENABLED(POLAR)
935937
// For now, we don't limit POLAR
936938
#else

0 commit comments

Comments
 (0)