From 55919fc7d3f4298c79ac4a84abee94205094019f Mon Sep 17 00:00:00 2001 From: Arksine Date: Tue, 18 Aug 2020 08:59:32 -0400 Subject: [PATCH] docs: update the PANELDUE_BEEP macro documentation Signed-off-by: Eric Callahan --- docs/installation.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 7406ac6..383fa9e 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -229,14 +229,17 @@ in the PanelDue's "macro" menu. Note that buzzing the piezo requires the following gcode_macro in `printer.cfg`: ``` [gcode_macro PANELDUE_BEEP] +variable_sequence: 0 +variable_frequency: 0 +variable_duration: 0 # Beep frequency default_parameter_FREQUENCY: 300 # Beep duration in seconds default_parameter_DURATION: 1. gcode: - { printer.webhooks.action_call_remote_method( - "paneldue_beep", frequency=FREQUENCY|int, - duration=DURATION|float) } + SET_GCODE_VARIABLE MACRO=PANELDUE_BEEP VARIABLE=frequency VALUE={FREQUENCY|int} + SET_GCODE_VARIABLE MACRO=PANELDUE_BEEP VARIABLE=duration VALUE={DURATION|float} + SET_GCODE_VARIABLE MACRO=PANELDUE_BEEP VARIABLE=sequence VALUE={printer["gcode_macro PANELDUE_BEEP"].sequence|int + 1} ``` #### Power Control Plugin