kopia lustrzana https://github.com/fellesverkstedet/fabmodules
GCC: Can enter/leave HPGL mode
rodzic
ebef5be7fb
commit
0b4993f3e9
|
@ -69,10 +69,20 @@ void fab_write_gcc(struct fab_vars *v, char *output_file_name,
|
||||||
// Note: Must be <80 bytes
|
// Note: Must be <80 bytes
|
||||||
fprintf(output_file,"!m%dN%s", strlen(filename), filename);
|
fprintf(output_file,"!m%dN%s", strlen(filename), filename);
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
|
// TODO: set power,ppi, speed
|
||||||
|
|
||||||
|
|
||||||
|
// Enter HPGL vector mode
|
||||||
|
fprintf(output_file,"%%1B");
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
current_z = 0;
|
current_z = 0;
|
||||||
fprintf(output_file,"YP%d;\n",power);
|
fprintf(output_file,"YP%d;\n",power);
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
v->path->segment = v->path->last;
|
v->path->segment = v->path->last;
|
||||||
while (1) {
|
while (1) {
|
||||||
//
|
//
|
||||||
|
@ -123,6 +133,9 @@ void fab_write_gcc(struct fab_vars *v, char *output_file_name,
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Leave HPGL vector mode
|
||||||
|
fprintf(output_file,"%%1A");
|
||||||
|
|
||||||
// Reset
|
// Reset
|
||||||
fprintf(output_file,"E");
|
fprintf(output_file,"E");
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue