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
G4 ; wait | |
M221 S100 | |
M106 S0 ; turn off cooling fan | |
M104 S0 ; turn off extruder | |
M140 S0 ; turn off bed | |
G91 | |
G1 F1800 E-3 | |
G90 | |
{if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+30, max_print_height)}{endif} ; Move print head up | |
G28 X0 ; home x and y axis |
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
M117 Heating... ;Put printing message on LCD screen | |
M300 S2500 P100; Beep | |
M204 T1250 ; sets acceleration (P, T) and retract acceleration (R), mm/sec^2 | |
M221 S{if layer_height<0.075}100{else}100{endif} ; Set flow | |
M104 S140 ; set extruder temp | |
M140 S[first_layer_bed_temperature] ; set bed temp | |
;G1 Z50 ; this is a good start heating position | |
G28 X Y; Home X Y | |
G1 Y10 ; this is a good start heating position |
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
function makeMatrixFromVec2(x, y) { | |
return [ | |
x, 0, 0, | |
0, y, 0, | |
0, 0, 0 | |
]; | |
} | |
function makeVec2FromMatrix3(mat3) { | |
return { |
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
var stream = require('stream') | |
var liner = new stream.Transform({objectMode: true}) | |
liner._transform = function(chunk, encoding, done){ | |
var data = chunk.toString(); | |
if (this._lastLineData){ | |
data = this._lastLineData + data; | |
} | |
var lines = data.split('\n'); |