Files
klipper_configs_flyingbear/Flying Bear Generic Configs/macros/macros.cfg
oducceu 31ac02031d Updates and fixes
update /macros folder

Update *bltouch.cfg

Fix Z and Y pins

Fix Y direction

Update MKSRN-Sv1.3 pins

Clean obsolete comments
2021-10-19 22:26:54 +03:00

39 lines
1.6 KiB
INI

################################################################################
# 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
################################################################################
# WARNING! DO NOT EDIT THIS FILE!
# To override settings from this file, you can copy and paste the relevant
# sections into your printer.cfg and change it there.
################################################################################
# Documentation
# https://www.klipper3d.org/G-Codes.html
# https://www.klipper3d.org/Command_Templates.html
################################################################################
# Included macros
################################################################################
[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 ########################################################################
################################################################################