comparison harelet.c @ 16:43dcb67b173d

Automated Vimcurial commmit
author VilyaemKenyaz
date Tue, 12 Sep 2023 08:47:15 -0400
parents ef57eb9ec02b
children 7bf25e90a1de
comparison
equal deleted inserted replaced
15:ef57eb9ec02b 16:43dcb67b173d
55 gotoxy(0,50); 55 gotoxy(0,50);
56 56
57 gotoxy(points[i].X,points[i].Y); 57 gotoxy(points[i].X,points[i].Y);
58 58
59 if(points[i].down == 0){ 59 if(points[i].down == 0){
60 //puts("X");
61 printf("X"); 60 printf("X");
62 } 61 }
63 else{ 62 else{
64
65 //puts("*");
66 printf("*"); 63 printf("*");
67 } 64 }
68 65
69 66
70 } 67 }
122 strcat(instruction," Z 5\n"); 119 strcat(instruction," Z 5\n");
123 } 120 }
124 else{ 121 else{
125 strcat(instruction," Z 0\n"); 122 strcat(instruction," Z 0\n");
126 } 123 }
127 strcat(instruction,buffer); 124 //strcat(instruction,buffer);
128 //Write to string 125 //Write to string
129 strcat(file,instruction); 126 strcat(file,instruction);
130 } 127 }
128
131 //Finish 129 //Finish
132 strcat(file,"G0 X0 Y0 Z0\n"); 130 strcat(file,"G0 X0 Y0 Z0\n");
133 WriteFile(filename,file); 131 WriteFile(filename,file);
134 } 132 }
135 else{ 133 else{
136 134
137 puts("Invalid compile format"); 135 puts("Invalid compiliation format");
136 scanf("");
138 137
139 138
140 } 139 }
141 140
142 puts("Finished Compiling GCODE"); 141 puts("Finished Compiling GCODE");
143 getchar(); 142 scanf("");
144 scanf("Check above for problems");
145 143
146 } 144 }
147 145
148 146
149 /********************************************* 147 /*********************************************