Skip to content

Instantly share code, notes, and snippets.

View AndySze's full-sized avatar
🥇
Working hard

Andy Si AndySze

🥇
Working hard
  • Earth
View GitHub Profile
@AndySze
AndySze / .block
Created December 30, 2017 04:42 — forked from mbostock/.block
Epicyclic Gearing
license: gpl-3.0
@AndySze
AndySze / kin.js
Created September 26, 2016 21:13 — forked from kastner/kin.js
forward and reverse kinematics for a linear delta bot
DELTA_DIAGONAL_ROD = 288.5
// Horizontal offset from middle of printer to smooth rod center.
DELTA_SMOOTH_ROD_OFFSET = 206.0 // mm
// Horizontal offset of the universal joints on the end effector.
// DELTA_EFFECTOR_OFFSET = 32.0 // mm
DELTA_EFFECTOR_OFFSET = 32.0 // mm
// Horizontal offset of the universal joints on the carriages.
@AndySze
AndySze / dwt_timer.h
Created September 6, 2016 05:33 — forked from RickKimball/dwt_timer.h
delay_cycles via DWT cortex-m3 registers
/*
* dwt_timer.h
*
* Created on: Jun 15, 2015
* Author: kimballr
*/
#ifndef DWT_TIMER_H_
#define DWT_TIMER_H_
#!/usr/bin/env python
import sys
import math
import json
steps = 6
if len(sys.argv) > 1:
steps = int(sys.argv[1])
radius = 80.0
@AndySze
AndySze / MiniPanel_chinese_test.ino
Last active August 29, 2015 14:01
这是一个完整的项目,下载两个文件的代码,就可以测试一下在Mini Panel下显示中文了。不过默认的汉字只有与Marlin固件相关的,如果想添加其它个性化汉字,可以参考详细教程: http://learn.makerlab.me/guides/9
/*
HelloWorld.pde
"Hello World!" example code.
>>> Before compiling: Please remove comment from the constructor of the
>>> connected graphics display (see below).
Universal 8bit Graphics Library, http://code.google.com/p/u8glib/
@AndySze
AndySze / marlin_chinese_font_data.h
Last active August 29, 2015 14:01
为了让Marlin固件使用LCD时可以显示中文菜单,需要中文字体数据。该文件是我生成的中文数据,详细教程请参考:http://learn.makerlab.me/guides/9
/*
Fontname: -Firefly-Firefly New Sung-Medium-R-Normal--11-110-75-75-P-109-ISO10646-1
Copyright:
Capital A Height: 9, '1' Height: 9
Calculated Max Values w=11 h=11 x= 4 y= 6 dx=11 dy= 0 ascent=10 len=22
Font Bounding box w=11 h=11 x= 0 y=-1
Calculated Min Values x= 0 y=-1 dx= 0 dy= 0
Pure Font ascent = 9 descent=-1
X Font ascent = 9 descent=-1
Max Font ascent =10 descent=-1
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configuration file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
//===========================================================================
//============================= DELTA Printer ===============================
//===========================================================================
/*
* ChibiOS/RT - Copyright (C) 2013 Alan Barr
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
from pyfirmata import Arduino, util
import time
board = Arduino('/dev/ttyACM0')
def move(dir,sec):
if dir == 'forward':
board.digital[6].write(1)
board.digital[9].write(1)
board.digital[10].write(1)
board.digital[11].write(1)