From fd2feff67df65c559cafc8fc5f2fd8601355e81a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 13 Jan 2023 11:20:19 -0500 Subject: 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 --- config/sample-macros.cfg | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'config/sample-macros.cfg') 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 -- cgit v1.2.3-70-g09d2