Skip to content

Instantly share code, notes, and snippets.

@awoehler
awoehler / gist:bf5182f47c78f0653dbf7a04276dc902
Created September 2, 2020 15:32
Simplify3D CR-6 SE Scripts
;;;;Starting Script
; Taken from sample provided that had Simplifile3D settings in the GCode
G28 ; Home all axes
G92 E0 ; Reset Extruder
; Taken from Ender 3D setup.
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
@awoehler
awoehler / ServoTester.ino
Last active December 14, 2018 06:11
Servo Tester Arduino UNO
/*
Analog inputs 0 & 1 should be hooked up to a joystick style potentiometer to control servos 3 & 5.
Analog inputs 2 & 3 should be hooked up to dial style potentiometers to control servos 6 & 9.
Servo 10 & 11 will always be centered.
Analog inputs 4 & 5 are used by the screen.
*/
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Servo.h>
@awoehler
awoehler / getInputScreenData
Created April 20, 2017 17:01
Determine where other inputs are in relation to current a given input
///Return an object that can be used for screen navigation decisions.
//el is a screen element.
function getInputScreenData(el) {
var response = {
prevRow: [],
currRow: [],
nextRow: [],
rowIndex: -1,
colIndex: -1,
offset: {left: -1, top: -1 }