[include shell_command.cfg]
# host MCU service is preinstalled and ready to use with:
serial: /tmp/klipper_host_mcu
# This file contains common pin mappings for the BIGTREETECH Manta M8P
# To use this config, the firmware should be compiled for the
# STM32G0B1 with a "8KiB bootloader" "8 MHz crystal"
# and "USB (on PA11/PA12)" or "CAN bus (on PD12/PD13)".
# https://github.com/Klipper3d/klipper/blob/master/config/generic-bigtreetech-manta-m8p-v1.1.cfg
# See docs/Config_Reference.md for a description of parameters.
#@serial: /dev/serial/by-id/usb-Klipper_stm32g0b1xx_3C001B000B504B4633373520-if00
#serial: /dev/serial/by-id/usb-Klipper_stm32f072xb_28002C000757434331363920-if00
max_accel: 4000 #Max 4000
max_z_velocity: 15 #Max 15 for 12V TMC Drivers, can increase for 24V
square_corner_velocity: 5.0
full_steps_per_rotation: 200 #set to 200 for 1.8 degree stepper
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
full_steps_per_rotation: 200 #set to 200 for 1.8 degree stepper
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
full_steps_per_rotation: 200 #set to 200 for 1.8 degree stepper
endstop_pin: probe:z_virtual_endstop
full_steps_per_rotation: 200 #set to 200 for 1.8 degree stepper
full_steps_per_rotation: 200 #set to 200 for 1.8 degree stepper
step_pin: HermitCrab: PA6
dir_pin: !HermitCrab: PA7
enable_pin: !HermitCrab: PA5
rotation_distance: 24.235
heater_pin: HermitCrab: PA2
sensor_type: EPCOS 100K B57560G104F
sensor_pin: HermitCrab: PA1
max_extrude_cross_section: 4
uart_pin: HermitCrab: PB0
#####################################################################
#####################################################################
sensor_type: ATC Semitec 104GT-2
## Adjust Max Power so your heater doesn't warp your bed
EXP1_3=PE11, EXP1_4=PE12,
EXP1_5=PE13, EXP1_6=PE14, # Slot in the socket on this side
EXP1_7=PE15, EXP1_8=PB10,
EXP1_9=<GND>, EXP1_10=<5V>,
EXP2_1=PB14, EXP2_2=PB13,
EXP2_5=PE7, EXP2_6=PB11, # Slot in the socket on this side
EXP2_7=PE8, EXP2_8=<RST>,
EXP2_9=<GND>, EXP2_10=<NC>
# See the sample-lcd.cfg file for definitions of common LCD displays.
#####################################################################
#####################################################################
home_xy_position: 188,185
sensor_pin: ^HermitCrab:PB2
control_pin: HermitCrab:PB1
#z_offset: 4 # Uncomment if starting fresh; Distance should be enough to keep the z-offset positive.
pin_up_touch_mode_reports_triggered: True
probe_with_touch_mode: True
samples_tolerance_retries: 3
# Additional bed leveling screws. At least two screws must be
retry_tolerance: 0.03 #0.0075
#####################################################################
#####################################################################
188,185, 20 # middle of bed as an example
#####################################################################
#####################################################################
# All customizations are documented in globals.cfg. Just copy a variable from
# there into the section below, and change the value to meet your needs.
[gcode_macro _km_options]
# These are examples of some likely customizations:
# Any sheets in the below list will be available with a configurable offset.
#variable_bed_surfaces: ['smooth_1','texture_1']
# Length (in mm) of filament to load (bowden tubes will be longer).
variable_load_length: 50.0
# Hide the Octoprint LCD menu since I don't use it.
#variable_menu_show_octoprint: False
# Customize the filament menus (up to 10 entries).
#variable_menu_temperature: [
# {'name' : 'PLA', 'extruder' : 200.0, 'bed' : 60.0},
# {'name' : 'PETG', 'extruder' : 230.0, 'bed' : 85.0},
# {'name' : 'ABS', 'extruder' : 245.0, 'bed' : 110.0, 'chamber' : 60}]
# Length of filament (in millimeters) to purge at print start.
variable_start_purge_length: 30 # This value works for most setups.
gcode: # This line is required by Klipper.
# Any code you put here will run at klipper startup, after the initialization
# for these macros. For example, you could uncomment the following line to
# automatically adjust your bed surface offsets to account for any changes made
# to your Z endstop or probe offset.
# Y position to park toolhead (set "max" or "min" to infer from stepper config).
# This line includes all the standard macros.
[include klipper-macros/*.cfg]
# Uncomment to include features that require specific hardware support.
# LCD menu support for features like bed surface selection and pause next layer.
#[include klipper-macros/optional/lcd_menus.cfg]
[include klipper-macros/optional/bed_mesh.cfg]
# The sections below here are required for the macros to work. If your config
# already has some of these sections you should merge the duplicates into one
# (or if they are identical just remove one of them).
_KM_IDLE_TIMEOUT # This line must be in your idle_timeout section.
filename: ~/printer_data/config/variables.cfg # UPDATE THIS FOR YOUR PATH!!!
path: ~/printer_data/gcodes # UPDATE THIS FOR YOUR PATH!!!
on_error_gcode: CANCEL_PRINT
RUN_SHELL_COMMAND CMD=update_git_script
[gcode_shell_command update_git_script]
command: bash -c "bash $HOME/klipper-backup/script.sh"