strayr / strayr-k-macros

useful macros to extend the functionality of klipper
GNU General Public License v3.0
147 stars 9 forks source link

strayr-k-macros

Some useful macros for Klipper

WARNING

Alternatives

Features

Installation

git clone https://github.com/strayr/strayr-k-macros.git

Add this to printer.cfg

[include strayr-k-macros/common.cfg]
[save_variables]
#set this filename and path to somewhere convenient. Assumes your config lives in ~/klipper_config, it might be in ~/ or elsewhere
filename: ~/kprint-conf/printer_variables.cfg

[include strayr-k-macros/setup_macros.cfg] # this includes start print, cancel print etc, intended for bedslingers, if you need changes, copy it to your config folder and include your local version instead.

You will need to need to copy the following files into you your settings directory and make changes:

[include beeper.cfg] # requires beeper pin setting
[include save_variables.cfg] # lots of printer specific settings.

The following enable optional functionality, add to your printer.cfg as required

[include strayr-k-macros/mechanical_level_tmc2209.cfg] # provides G34 gantry level. Read before use. 
[include strayr-k-macros/idle_timeout.cfg] # use on printers with a z that falls when unpowered
[include strayr-k-macros/extrusion_test.cfg] # contains some macros to calibrate flow
[include  bed_offset.cfg] # read and understand this
[include k-macros/extrusion_test.cfg] # totally optional

once you have the macros in place you with to use, run the follow extended gcode:

FIRMWARE_RESTART
_INIT_ALL

Interdependent Code

Mechanical Gantry Calibration

Sample configs

Bed Offset

This is relatively stand alone, you need to set up [save_variables] and add a line to your START_PRINT and END_PRINT macros.

You may benefit from having the PROBE_CALIBRATE menu items in improved_menu.cfg set up so you can run all that from the screen.