diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2023-10-13 21:10:11 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2023-11-16 22:07:15 -0500 |
commit | 29b7550ce5330da8e5ca4f22c1420cbeadf01eaf (patch) | |
tree | 107c086343081c9589af7be53873fea1a7a40d29 /config | |
parent | 48a05eaa542bfd4a1099c2224bda443049a6fa64 (diff) | |
download | kutter-29b7550ce5330da8e5ca4f22c1420cbeadf01eaf.tar.gz kutter-29b7550ce5330da8e5ca4f22c1420cbeadf01eaf.tar.xz kutter-29b7550ce5330da8e5ca4f22c1420cbeadf01eaf.zip |
pwm_tool: Add support for high-speed PWM pin updates
The output_pin module is only capable of updating an output pin at
most once every 100ms. Add a new pwm_tool module that is capable of
queuing updates in the micro-controller and thus allowing for much
higher update rates.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'config')
-rw-r--r-- | config/sample-pwm-tool.cfg | 11 |
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 |