diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2023-01-13 11:20:19 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-01-23 20:04:03 -0500 |
commit | fd2feff67df65c559cafc8fc5f2fd8601355e81a (patch) | |
tree | 35001c58cddd233bf1689ef284e76a8e3d9d2a60 /config | |
parent | 1baa45913ffd05a808d5d9ea0ae0161ebbaff247 (diff) | |
download | kutter-fd2feff67df65c559cafc8fc5f2fd8601355e81a.tar.gz kutter-fd2feff67df65c559cafc8fc5f2fd8601355e81a.tar.xz kutter-fd2feff67df65c559cafc8fc5f2fd8601355e81a.zip |
pwm_cycle_time: New module for output pins with dynamic cycle times
Remove support for changing the cycle time of pwm pins from the
output_pin module. Use a new pwm_cycle_time module that supports
setting dynamic cycle times. This simplifies the output_pin code and
low-level pin update code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'config')
-rw-r--r-- | config/sample-macros.cfg | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/config/sample-macros.cfg b/config/sample-macros.cfg index 5132e1c9..f5649d61 100644 --- a/config/sample-macros.cfg +++ b/config/sample-macros.cfg @@ -61,12 +61,10 @@ gcode: # P is the tone duration, S the tone frequency. # The frequency won't be pitch perfect. -[output_pin BEEPER_pin] +[pwm_cycle_time BEEPER_pin] pin: ar37 # Beeper pin. This parameter must be provided. # ar37 is the default RAMPS/MKS pin. -pwm: True -# A piezo beeper needs a PWM signal, a DC buzzer doesn't. value: 0 # Silent at power on, set to 1 if active low. shutdown_value: 0 |