Button Signal Trigger Configuration
Function Overview
The physical buttons on the FLY-LLL PLUS buffer support sending signals to Klipper. When you press a button, the buffer outputs a level signal on a specified pin. The Klipper mainboard can detect these signals and execute preset G-code commands, enabling more flexible print control.
Signal Output Description
| Button | Operation | Signal Output (Buffer Pin) | Signal Type | Duration |
|---|---|---|---|---|
| Feed Button (FEED) | Click | FEED pin outputs a high-level pulse | High Level | Automatically returns to low level after 3 seconds |
| Feed Button (FEED) | Long Press | Continuous feeding | High Level | Until the button is released |
| Retract Button (RETRACT) | Click | RETRACT pin outputs a low-level pulse | Low Level | Automatically returns to high level after 3 seconds |
| Retract Button (RETRACT) | Long Press | Continuous retraction | Low Level | Until the button is released |
Wiring Method
Loading...
Wiring Steps
- Prepare Connection Wires: Use Dupont wires or dedicated connection cables.
- Connect Signal Wires:
- Connect the buffer's FEED pin to any free endstop port or GPIO pin on the mainboard.
- Connect the buffer's RETRACT pin to another free endstop port or GPIO pin on the mainboard.
- Connect the buffer's GND pin to a ground (GND) pin on the mainboard.
- Record Pin Numbers: Note down the pin numbers used on the mainboard side (e.g., PD4, PD5) for subsequent configuration.
Tip: It is recommended to use endstop ports on the mainboard (usually 3-pin interfaces). Pay attention to the order of signal wires when connecting to avoid reverse connection.
Klipper Configuration
1. Basic Configuration Example
Add the following configuration sections to the Klipper configuration file (e.g., printer.cfg):
[gcode_button trigger_feed]
pin: ^PD4 # Replace with your actual connected pin (e.g., PD4)
press_gcode:
RESPOND MSG="Trigger Feed"
# Add custom feed G-code here
[gcode_button trigger_retract]
pin: ^!PD5 # Replace with your actual connected pin (e.g., PD5)
press_gcode:
RESPOND MSG="Trigger Retract"
# Add custom retract G-code here
2. Configuration Parameter Details
[gcode_button button_name] # Custom button name for easy identification
pin: ^!PD4 # Pin configuration
# ^ Indicates using an internal pull-up resistor (commonly used for button signals)
# ! Indicates signal inversion (used when low-level is active)
# PD4 Replace with your actual connected pin number
press_gcode: # G-code sequence executed when the button is pressed
# Add any valid G-code commands here
# e.g., control extruder feed/retract, pause print, execute macros, etc.
3. Common G-code Examples
Controlling Extruder Feed/Retract
[gcode_button manual_feed]
pin: ^!PD4
press_gcode:
RESPOND MSG="Manual Feed 10mm"
G91 # Switch to relative coordinate mode
G1 E10 F300 # Extrude 10mm, feed rate 300mm/min
G90 # Switch back to absolute coordinate mode
RESPOND MSG="Feed Complete"
[gcode_button manual_retract]
pin: ^!PD5
press_gcode:
RESPOND MSG="Manual Retract 5mm"
G91 # Switch to relative coordinate mode
G1 E-5 F300 # Retract 5mm, rate 300mm/min
G90 # Switch back to absolute coordinate mode
RESPOND MSG="Retract Complete"
Loading...