mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 07:04:01 -06:00
docs: Prefer Jinja2 "set" directive to default_parameter_xxx in examples
The "set" directive is more flexible and easier to understand. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
61a25d2fb2
commit
d36dbfebd1
4 changed files with 32 additions and 60 deletions
|
@ -163,12 +163,8 @@ that if the method takes parameters they should be provided as keyword
|
|||
arguments. Below is an example of how it may called from a gcode_macro:
|
||||
```
|
||||
[gcode_macro PANELDUE_BEEP]
|
||||
default_parameter_FREQUENCY: 300
|
||||
default_parameter_DURATION: 1.
|
||||
gcode:
|
||||
{action_call_remote_method("paneldue_beep",
|
||||
frequency=FREQUENCY|int,
|
||||
duration=DURATION|float)}
|
||||
{action_call_remote_method("paneldue_beep", frequency=300, duration=1.0)}
|
||||
```
|
||||
|
||||
When the PANELDUE_BEEP gcode macro is executed, Klipper would send something
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue