Skip to content
Permalink
Browse files

- added samples

- disabled debug
- still not clean
- still binary problems
  • Loading branch information...
Fabian
Fabian committed Mar 2, 2018
1 parent 464c811 commit 2a7bb41a790637483ab8ac52d6970174ed4c9056
@@ -221,6 +221,10 @@ function getSlice(layerNumber) {
pixel++;
}
}
/*
for(var i=0*array.length; i<1/4*array.length; i++){
array[i]=255;
}*/
//console.log('array :', array);
//var fileName = layerNumber + '.txt';
//zipFolder.file(fileName, array, {type: 'text/plain'});
@@ -233,6 +237,7 @@ function getSlice(layerNumber) {
";\nG1 Z-"+(settings.get('slicer.lifting.height')-settings.get('slicer.layers.height')/1000)+
" F"+settings.get('slicer.lifting.speed')+";\n{{\n"
wowFile += (new TextDecoder("utf-8")).decode(array)+"\n"
// Backup text file
zipFolder.file(layerNumber+".txt", array);
// GCode logic
wowFile += "}}\nM106 S255;\nG4 S"+settings.get('slicer.light.on')/1000+";\n"
@@ -676,6 +681,7 @@ function endSlicing() {

// GCode logic
wowFile += "M106 S0;\nG1 Z20.0;\nG4 S300;\nM18;"
/*
wowFile += "\n"
var array = new Uint8Array(5);
array[0] = 255;
@@ -692,7 +698,7 @@ function endSlicing() {
//wowFile += (new TextDecoder("utf8.bin")).decode(array)+"\n"
//wowFile += (new TextDecoder("utf16le.bin")).decode(array)+"\n"
//wowFile += (new TextDecoder("utf-16le")).decode(array)+"\n"

*/

zipFile.file("print.wow", wowFile);

BIN +802 KB other/print.wow
Binary file not shown.
Binary file not shown.
BIN +50 KB other/slices/1.txt
Binary file not shown.
BIN +50 KB other/slices/10.txt
Binary file not shown.
BIN +50 KB other/slices/11.txt
Binary file not shown.
BIN +50 KB other/slices/12.txt
Binary file not shown.
BIN +50 KB other/slices/13.txt
Binary file not shown.
BIN +50 KB other/slices/14.txt
Binary file not shown.
BIN +50 KB other/slices/15.txt
Binary file not shown.
BIN +50 KB other/slices/16.txt
Binary file not shown.
BIN +50 KB other/slices/2.txt
Binary file not shown.
BIN +50 KB other/slices/3.txt
Binary file not shown.
BIN +50 KB other/slices/4.txt
Binary file not shown.
BIN +50 KB other/slices/5.txt
Binary file not shown.
BIN +50 KB other/slices/6.txt
Binary file not shown.
BIN +50 KB other/slices/7.txt
Binary file not shown.
BIN +50 KB other/slices/8.txt
Binary file not shown.
BIN +50 KB other/slices/9.txt
Binary file not shown.

0 comments on commit 2a7bb41

Please sign in to comment.
You can’t perform that action at this time.