mirror of
https://github.com/oducceu/klipper_configs.git
synced 2025-12-22 07:33:36 +05:00
Initial release of Flying Bear Generic Configs
This commit is contained in:
26
Flying Bear Generic Configs/macros/macros.cfg
Normal file
26
Flying Bear Generic Configs/macros/macros.cfg
Normal file
@@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
# Board: MKS Robin Nano v1.1 (Flying Bear Reborn 2.0) / MKS Robin Nano v1.3 / MKS Robin Nano-S v1.3
|
||||
# Printer: Flying Bear Ghost 4S / Ghost 5 / Reborn
|
||||
# G-code Macros by ODUCCEU
|
||||
################################################################################
|
||||
|
||||
[include print_management.cfg]
|
||||
[include prime_line.cfg]
|
||||
[include filament_management.cfg]
|
||||
[include macros_marlin.cfg]
|
||||
|
||||
# Beeper #######################################################################
|
||||
|
||||
[gcode_macro BEEP]
|
||||
gcode:
|
||||
{% set S = params.S|default(1000)|int %} # frequency in Hz
|
||||
{% set P = params.P|default(100)|int %} # duration in milliseconds
|
||||
SET_PIN PIN=_BEEPER_pin VALUE=0.5 CYCLE_TIME={ 1.0/S if S > 0 else 1 }
|
||||
G4 P{P}
|
||||
SET_PIN PIN=_BEEPER_pin VALUE=0
|
||||
|
||||
# Other ########################################################################
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
Reference in New Issue
Block a user