From 7b6a44e8f93fd6068facc0c4870d1e350eb82218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janar=20S=C3=B6=C3=B6t?= Date: Mon, 17 Sep 2018 15:26:59 +0300 Subject: [PATCH] menu: New Tune submenu (#653) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Janar Sööt --- klippy/extras/display/menu.cfg | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/klippy/extras/display/menu.cfg b/klippy/extras/display/menu.cfg index c944ac15..8774920a 100644 --- a/klippy/extras/display/menu.cfg +++ b/klippy/extras/display/menu.cfg @@ -8,6 +8,7 @@ type: list name: Main Menu items: + __tune __octoprint __sdcard __control @@ -16,6 +17,50 @@ items: __prepare __test +### menu tune ### +[menu __tune] +type: list +enable: toolhead.is_printing +name: Tune +items: + .__speed + .__flow + .__offsetz + +[menu __tune __speed] +type: input +name: "Speed: {1:3d}%" +parameter: gcode.speed_factor +transform: + map(0,2,0,200) +input_min: 0 +input_max: 2 +input_step: 0.01 +realtime: true +gcode: M220 S{1:d} + +[menu __tune __flow] +type: input +name: "Flow: {1:3d}%" +parameter: gcode.extrude_factor +transform: + map(0,2,0,200) +input_min: 0 +input_max: 2 +input_step: 0.01 +realtime: true +gcode: M221 S{1:d} + +[menu __tune __offsetz] +type: input +name: "Offset Z:{0:05.3f} " +parameter: gcode.homing_zpos +input_min: -5 +input_max: 5 +input_step: 0.005 +realtime: true +gcode: SET_GCODE_OFFSET Z={0:.3f} + ### menu octoprint ### [menu __octoprint] type: list