Skip to content

Instantly share code, notes, and snippets.

View GarthSnyder's full-sized avatar

Garth Snyder GarthSnyder

View GitHub Profile
[gcode_macro limit_toolhead_temp_for_tap]
gcode:
{% set stack_level = printer["gcode_macro restore_toolhead_temp"].stack_level|int > 0 %}
{% set already_limited = stack_level > 0 %}
{% set probe_temp = 150 %}
{% set max_temp = probe_temp + 3 %}
{% set actual_temp = printer.extruder.temperature %}
{% set target_temp = printer.extruder.target %}
{% set target_too_high = target_temp > probe_temp %}
{% set actual_too_high = actual_temp > max_temp %}
@GarthSnyder
GarthSnyder / printer.cfg
Created February 5, 2020 02:47
Klipper configuration for Artillery Sidewinder X1
# Artillery Sidewinder X1 printer.cfg file for Klipper
#
# Garth Snyder - 2/4/2020
#
# NOTE! Nonstandard configuration:
# BLTouch with custom mount (output on XMAX pin)
# Dual Z endstops (second on YMAX pin)
# SKR v1.3 with TMC2208 drivers
# 0.9 degree stepper motors on X and Y
This file has been truncated, but you can view the full file.
Starting Klippy...
Args: ['/home/pi/klipper/klippy/klippy.py', '/home/pi/printer.cfg', '-l', '/tmp/klippy.log']
Git version: 'v0.8.0-292-g27ba35cc'
CPU: 4 core ARMv7 Processor rev 4 (v7l)
Python: '2.7.13 (default, Sep 26 2018, 18:42:22) \n[GCC 6.3.0 20170516]'
Building C code module c_helper.so
Start printer at Mon Feb 3 14:59:18 2020 (1580770758.4 22.0)
===== Config file =====
[stepper_x]
step_pin = P2.2
# This file contains common pin mappings for the BIGTREETECH SKR V1.3
# board. To use this config, the firmware should be compiled for the
# LPC1768.
# See the example.cfg file for a description of available parameters.
[stepper_x]
step_pin: P2.2
dir_pin: !P2.6
enable_pin: !P2.1
@GarthSnyder
GarthSnyder / octoprint.log
Created February 3, 2020 04:56
No M105 after print job
2020-02-02 20:31:04,569 - octoprint.plugins.firmwareupdater - INFO - Got CONNECTED event
2020-02-02 20:31:04,570 - octoprint.plugins.firmwareupdater - INFO - Run postflash flag is not set
2020-02-02 20:31:04,573 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2020-02-02 20:31:04,609 - octoprint.util.comm - INFO - Printer reports firmware name "Klipper"
2020-02-02 20:31:04,614 - octoprint.util.comm - INFO - Detected Klipper firmware, enabling relevant features for issue free communication
2020-02-02 20:31:05,596 - octoprint.plugins.tracking - INFO - Sent tracking event printer_connected, payload: {u'printer_baudrate': 250000, u'printer_port': u'/tmp/printer', 'firmware_name': 'Klipper'}
2020-02-02 20:31:31,735 - octoprint.server.util.flask - INFO - Passively logging in user garth from ::ffff:192.168.0.26
2020-02-02 20:32:12,409 - octoprint.printer.standard.job - INFO - Print job selected - origin: local, path: Null.gcode, owner: garth, user: garth
2020-02-02 20:32:12,447 - octopr
@GarthSnyder
GarthSnyder / serial.log
Created February 3, 2020 04:52
No M105 after print
2020-02-02 20:31:44,581 - Send: M105
2020-02-02 20:31:44,596 - Recv: ok B:22.1 /0.0 T0:22.2 /0.0
2020-02-02 20:31:49,583 - Send: M105
2020-02-02 20:31:49,597 - Recv: ok B:22.1 /0.0 T0:22.2 /0.0
2020-02-02 20:31:54,584 - Send: M105
2020-02-02 20:31:54,599 - Recv: ok B:22.1 /0.0 T0:22.2 /0.0
2020-02-02 20:31:59,587 - Send: M105
2020-02-02 20:31:59,601 - Recv: ok B:22.1 /0.0 T0:22.2 /0.0
2020-02-02 20:32:04,591 - Send: M105
2020-02-02 20:32:04,605 - Recv: ok B:22.1 /0.0 T0:22.2 /0.0
# This file contains common pin mappings for the BIGTREETECH SKR V1.3
# board. To use this config, the firmware should be compiled for the
# LPC1768.
# See the example.cfg file for a description of available parameters.
[stepper_x]
step_pin: P2.2
dir_pin: !P2.6
enable_pin: !P2.1
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
#!/usr/bin/env xcrun swift
// Garth Snyder - August 4, 2014
struct TakeWhile<T: SequenceType> : SequenceType
{
typealias Element = T.Generator.Element
let underlyingSequence: T
let keepGoing: Element -> Bool