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
;;;;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 |
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
/* | |
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> |
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
///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 } |