Skip to content

Instantly share code, notes, and snippets.

@ctmakro
ctmakro / klipper_on_win7.md
Last active June 20, 2024 11:34
20210526 How to compile and run Klipper (highest performance 3D printer firmware with most awesome features) on Anycubic Kossel (Arduino Mega / atmega2560) + OctoPrint from Windows 7 x64

How to compile and run Klipper on atmega2560 + OctoPrint from Windows 7 x64

Situation

  • I own an Anycubic Kossel delta 3D printer, running custom Marlin firmware, custom mainboard(atmega2560), connected to my PC via USB (USB Serial), controlled mostly via Printrun(Pronterface)
  • I want ultra high performance and latest improvements in my 3D printer, with the help from Klipper software/firmware
  • Normally you should go get an Raspberry Pi and do everything (compile/install Klipper / OctoPrint) from there, but I don't have a Pi, don't want to mess with the cables, decided to run Klipper from my PC

Steps

@rajeevan
rajeevan / Configuration.h
Last active January 29, 2021 11:09
Anycubic kossel linear plus with Marlin 1.1.x Firmware
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 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
@Islandman93
Islandman93 / smoothstep.ipynb
Last active January 11, 2021 14:36
Smooth step
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Trying to understand the math involved in
# https://github.com/synthetos/TinyG/blob/master/firmware/tinyg/plan_exec.c
# https://github.com/synthetos/g2/blob/master/g2core/plan_exec.cpp#L693
# https://github.com/synthetos/g2/blob/master/g2core/planner.h
# https://github.com/synthetos/g2/blob/92e455e965e2a68741218ca9b10162b70e45ffa2/g2core/plan_zoid.cpp
import sympy as sp
import sympy.abc as abc
@RSDuck
RSDuck / event.nim
Last active May 26, 2017 19:39
Nim event system
import macros, tables, hashes, strutils, oids
type
VariantTypes* = enum
variInt, variFloat32, variString, variBool
Variant* = object
case variant: VariantTypes
of variInt: intVal: int
of variFloat32: float32Val: float32
of variString: stringVal: string
@zacharycarter
zacharycarter / wclwn.md
Last active July 6, 2024 06:26
Binding to C Libraries with Nim
@josuigoa
josuigoa / Accelerometer.hx
Last active June 21, 2017 21:12
Getting accelerometer values with Luxe engine
package;
import luxe.Input;
typedef AccelEvent = {
timestamp:Float,
value:Float,
axis:Int
}
@anissen
anissen / Test.hx
Created March 7, 2016 20:44
Diamond-square algorithm for generating realistic terrain
class Heightmap {
var size :Int;
var tiles :Array<Array<Null<Float>>>;
var d :Int;
public function new() {
}
@anissen
anissen / Perlin.hx
Last active April 12, 2016 13:33
Animated perlin noise example
class Perlin {
public var repeat :Int;
public function new(repeat :Int = -1) {
this.repeat = repeat;
}
public function OctavePerlin(x :Float, y :Float, z :Float, octaves :Int, persistence :Float) {
var total :Float = 0;
var frequency :Float = 1;
@dgellow
dgellow / triangle.nim
Last active February 10, 2018 13:59 — forked from allj/triangle.nim
A colorful triangle in nim OpenGL.
import os
import opengl
import glfw/wrapper as glfw
var
win: GLFWwindow
vaoID: GLuint
vboID: GLuint
cboID: GLuint
vertexShaderID: GLuint