- 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Binding to C Libraries with Nim![Nim](https://raw.githubusercontent.com/nim-lang/assets/master/Art/logo-crown.png)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package; | |
import luxe.Input; | |
typedef AccelEvent = { | |
timestamp:Float, | |
value:Float, | |
axis:Int | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Heightmap { | |
var size :Int; | |
var tiles :Array<Array<Null<Float>>>; | |
var d :Int; | |
public function new() { | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import opengl | |
import glfw/wrapper as glfw | |
var | |
win: GLFWwindow | |
vaoID: GLuint | |
vboID: GLuint | |
cboID: GLuint | |
vertexShaderID: GLuint |
NewerOlder