prn_buttons.cfg 846 B

1234567891011121314151617181920
  1. #[gcode_button my_gcode_button]
  2. #pin:
  3. # The pin on which the button is connected. This parameter must be
  4. # provided.
  5. #analog_range:
  6. # Two comma separated resistances (in Ohms) specifying the minimum
  7. # and maximum resistance range for the button. If analog_range is
  8. # provided then the pin must be an analog capable pin. The default
  9. # is to use digital gpio for the button.
  10. #analog_pullup_resistor:
  11. # The pullup resistance (in Ohms) when analog_range is specified.
  12. # The default is 4700 ohms.
  13. #press_gcode:
  14. # A list of G-Code commands to execute when the button is pressed.
  15. # G-Code templates are supported. This parameter must be provided.
  16. #release_gcode:
  17. # A list of G-Code commands to execute when the button is released.
  18. # G-Code templates are supported. The default is to not run any
  19. # commands on a button release.