aboutsummaryrefslogtreecommitdiffstats
path: root/config/example-extras.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'config/example-extras.cfg')
-rw-r--r--config/example-extras.cfg15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg
index a17d10db..ebe3b921 100644
--- a/config/example-extras.cfg
+++ b/config/example-extras.cfg
@@ -1618,3 +1618,18 @@
# Replicape support - see the generic-replicape.cfg file for further
# details.
#[replicape]
+
+
+# Execute gcode when a button is pressed or released (or when a pin changes
+# state). You can check the state of the button my using
+# QUERY_BUTTON button=my_gcode_button
+#[gcode_button my_gcode_button]
+#pin:
+# The pin on which the button is connected. This parameter must be
+# provided.
+#press_gcode:
+# A list of G-Code commands to execute when the button is pressed.
+# G-Code templates are supported.
+#release_gcode:
+# A list of G-Code commands to execute when the button is released.
+# G-Code templates are supported.