aboutsummaryrefslogtreecommitdiffstats
path: root/config/sample-pwm-tool.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'config/sample-pwm-tool.cfg')
-rw-r--r--config/sample-pwm-tool.cfg11
1 files changed, 5 insertions, 6 deletions
diff --git a/config/sample-pwm-tool.cfg b/config/sample-pwm-tool.cfg
index 4adcea6f..48986061 100644
--- a/config/sample-pwm-tool.cfg
+++ b/config/sample-pwm-tool.cfg
@@ -2,9 +2,8 @@
# such as a laser or spindle.
# See docs/Using_PWM_Tools.md for a more detailed description.
-[output_pin TOOL]
+[pwm_tool TOOL]
pin: !ar9 # use your fan's pin number
-pwm: True
hardware_pwm: True
cycle_time: 0.001
shutdown_value: 0
@@ -36,9 +35,9 @@ gcode:
[menu __main __control __toolonoff]
type: input
-enable: {'output_pin TOOL' in printer}
+enable: {'pwm_tool TOOL' in printer}
name: Fan: {'ON ' if menu.input else 'OFF'}
-input: {printer['output_pin TOOL'].value}
+input: {printer['pwm_tool TOOL'].value}
input_min: 0
input_max: 1
input_step: 1
@@ -47,9 +46,9 @@ gcode:
[menu __main __control __toolspeed]
type: input
-enable: {'output_pin TOOL' in printer}
+enable: {'pwm_tool TOOL' in printer}
name: Tool speed: {'%3d' % (menu.input*100)}%
-input: {printer['output_pin TOOL'].value}
+input: {printer['pwm_tool TOOL'].value}
input_min: 0
input_max: 1
input_step: 0.01