Skip to content

Instantly share code, notes, and snippets.

@alienboyxp
alienboyxp / end.gcode
Created October 28, 2019 18:58
Start and End G-code for Ender 3 on Cura
; Ender 3 Custom End G-code
G4 ; Wait
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
G91 ; Set coordinates to relative
G1 F1800 E-3 ; Retract filament 3 mm to prevent oozing
G1 F3000 Z20 ; Move Z Axis up 20 mm to allow filament ooze freely
G90 ; Set coordinates to absolute
G1 X0 Y{machine_depth} F1000 ; Move Heat Bed to the front for easy print removal
M106 S0 ; Turn off cooling fan
#!python
# This script changes the color of the Voron Stealthburner logo LED to the color of
# the Feature Type (which is classified by the slicer) that is currently being printed.
#
# This postprocess script, especially the idea of adding gcode by the TYPE string,
# was inspired by RomRider's https://github.com/RomRider/klipper-FastGyroidInfill
#
# In order to make this work, you first need Stealthburner, which (of course) has
# built-in LEDs. And the LEDs must be configured in printer.cfg.
# If the toolhead LEDs don't have a dedicated chain, e.g. are strung after the
@alienboyxp
alienboyxp / start_print.cfg
Last active April 2, 2024 15:02
3Dwork.io - Klipper - Macro start_print
# Current Version v_20240319
# More detailed information and description - https://klipper.3dwork.io/klipper/empezamos/configuracion-klipper-en-laminadores
# Configure prime line - From Klipper-Adaptive-Meshing-Purging https://github.com/kyleisah/Klipper-Adaptive-Meshing-Purging
### START_PRINT ###
[gcode_macro START_PRINT]
##############################################################################
# BOOLEAN VARIABLES(True|False) ALWAYS UPPERCASE THE FIRST LETTER #
# LAS VARIABLES BOOLEANAS(True|False) SIEMPRE LA PRIMERA LETRA EN MAYUSCULAS #
@alienboyxp
alienboyxp / end_print.cfg
Last active May 22, 2023 11:13
3Dwork.io - Klipper - Macro end_print
# Current Version v_202305221109
#### END_PRINT ####
[gcode_macro END_PRINT]
gcode:
#Get Printer built volume dimensions
#Obtener dimensiones area de impresion
{% set X_MAX = printer.toolhead.axis_maximum.x|default(100)|float %}
{% set Y_MAX = printer.toolhead.axis_maximum.y|default(100)|float %}
#Fix-up extruder
# Current Version v_20240401
[gcode_macro TEST_KINEMATICS]
description: Test Printer Kinematics
gcode:
# home not homed axies
{% for axis in ['x', 'y', 'z'] %}
{% if axis not in printer.toolhead.homed_axes %}
G28 { axis }
{% endif %}
{% endfor %}
@alienboyxp
alienboyxp / last-release-notes.md
Last active June 8, 2023 09:46
3DWork.io - LABS Documentation - Changelog

🚀 Documentation Updated

  • update: Klipper - Puesta en marcha inicial - Reorganización parte endstops (by @alienboyxp)
  • docs: Klipper - Laminadores (by @alienboyxp)
  • Klipper - Laminadores - Changelog test 3 (by @alienboyxp)
  • Klipper - Laminadores - Changelog test 2 (by @alienboyxp)## 🚀 Documentation Updated
  • update: Klipper - Mejoras - Macros - Test Cinematica - Macro pasada a Gist (by @alienboyxp)
  • update: Klipper - Input Shaper - Fysetc adxl345 (by @alienboyxp)
  • update: Klipper - CANbus - M8p + EBB USB Bridge CAN - Añadido troubleshooting CAN (by @alienboyxp)
  • update: Klipper - CANbus - M8p + EBB USB Bridge CAN - Añadir actualizar Klipper usando CANboot (by @alienboyxp)
@alienboyxp
alienboyxp / macros_config_test_kinematics.cfg
Last active April 15, 2024 21:27
3Dwork.io - Klipper - Macro test_speed
# Current Version v_20240401
[gcode_macro TEST_KINEMATICS]
description: Test Printer Kinematics
gcode:
# home not homed axies
{% for axis in ['x', 'y', 'z'] %}
{% if axis not in printer.toolhead.homed_axes %}
G28 { axis }
{% endif %}
{% endfor %}
# Current Version v_202305221109
# Carga las variables globales de forma automática
# Mas info - https://3dwork.gitbook.io/3dwork.io/klipper/mejoras/macros-mejoras/cambio-filamentos-m600
[delayed_gcode activate_VAR_GLOBALS]
initial_duration: 1
gcode:
_VAR_GLOBALS ; Se cargan las variables globales al iniciar la impresion.
[gcode_macro _VAR_GLOBALS]
@alienboyxp
alienboyxp / change_filament.cfg
Last active June 14, 2023 18:36
3Dwork.io - Klipper - Macro change_filament
# Current Version v_202306142036
# Mas info - https://3dwork.gitbook.io/3dwork.io/klipper/mejoras/macros-mejoras/cambio-filamentos-m600
######################################################################
# CAMBIO DE FILAMENTO
######################################################################
# M600
# M601
# CHANGE_FILAMENT
# LOAD_FILAMENT
# UNLOAD_FILAMENT
# Current Version v_202305221109
# Mas info - https://3dwork.gitbook.io/3dwork.io/klipper/mejoras/macros-mejoras/cambio-filamentos-m600
[gcode_macro MOVE_PARK]
description: Aparca el cabezal de impresion, se puede ajustar en _VAR_GLOBALS.
gcode:
{% set vg = printer["gcode_macro _VAR_GLOBALS"] %}
# Se realiza el calculo de la posicion Z, X e Y se definen en _VAR_GLOBALS.
{% set max_z = printer.toolhead.axis_maximum.z|float %}