Skip to content

Instantly share code, notes, and snippets.

@benni12er
benni12er / end.gcode
Last active October 12, 2019 07:59
Creality Ender 3 - Ultimaker Cura 4.3 - Start & End code
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
G91 ; Incremental coordinates
G1 E-3 F1800 ; Retract
G1 Z10 F9000 ; Move up
G90 ; Absolute cooridinates
M106 S0 ; Turn off cooling fan
M104 S0 ; Turn off extruder
M140 S0 ; Turn off bed
G1 X0 Y{machine_depth} F9000 ; Move back
@benni12er
benni12er / FitImage.py
Last active July 4, 2022 21:39
Kivy image fit crop in frame/layout automatically
from kivy.graphics.context_instructions import Color
from kivy.graphics.vertex_instructions import Rectangle
from kivy.properties import StringProperty, Clock
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.image import Image
from kivy.uix.widget import Widget
"""
By Benedikt Zwölfer