add halot one and halot max

This commit is contained in:
Stewart Allen 2021-08-29 21:12:05 -04:00
commit ea266579f7
4 changed files with 39 additions and 0 deletions

View file

@ -58,6 +58,8 @@
case 'Anycubic.Photon.S':
// defaults above
break;
case 'Creality.Halot.One':
case 'Creality.Halot.Max':
case 'Creality.Halot.Sky':
smallDims = { x: 116, y: 116 };
largeDims = { x: 290, y: 290 };

View file

@ -294,6 +294,19 @@
let { device, process } = settings;
let cxdlp = new CXDLP();
if (width === 1620 && height === 2560) {
cxdlp.model = "CL-60";
} else
if (width === 3840 && height === 2400) {
cxdlp.model = "CL-89";
} else
if (width === 3840 && height === 2160) {
cxdlp.model = "CL-133";
} else {
throw `invalid printer dimensions ${width} x ${height}`;
}
cxdlp.layers = slices.map(a => {return { lines: a }});
cxdlp.res_x = device.resolutionX;
cxdlp.res_y = device.resolutionY;