Mercurial Hosting > harelet
changeset 14:8b5ff478ec66
Automated Vimcurial commmit
author | VilyaemKenyaz |
---|---|
date | Tue, 12 Sep 2023 08:35:17 -0400 |
parents | 8fe2392f2fcc |
children | ef57eb9ec02b |
files | .harelet.c.swp HARELET.MAN README.md harelet harelet.c |
diffstat | 5 files changed, 16 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/HARELET.MAN Tue Sep 12 08:28:49 2023 -0400 +++ b/HARELET.MAN Tue Sep 12 08:35:17 2023 -0400 @@ -21,7 +21,11 @@ A to add a point at the current cursor's position +D to make cursor set to down or up + C to compile GCODE S to change step size +Q to exit +
--- a/README.md Tue Sep 12 08:28:49 2023 -0400 +++ b/README.md Tue Sep 12 08:35:17 2023 -0400 @@ -18,6 +18,10 @@ A to add a point at the current cursor's position +Q to exit + +D to set cursor down or raised + C to compile GCODE S to change step size
--- a/harelet.c Tue Sep 12 08:28:49 2023 -0400 +++ b/harelet.c Tue Sep 12 08:35:17 2023 -0400 @@ -111,12 +111,12 @@ //Compose char instruction[32]; strcat(instruction,"G0 X "); + //Convert X to string + sprintf(buffer,"%d",points[i].X); strcat(instruction,buffer); - //Convert X to string - sprintf(buffer,"%d",&points[i].X); strcat(instruction," Y "); //Convert Y to string - sprintf(buffer,"%d",&points[i].Y); + sprintf(buffer,"%d",points[i].Y); strcat(instruction,buffer); if(points[i].down = 1){ strcat(instruction," Z 5\n"); @@ -140,7 +140,7 @@ } puts("Finished Compiling GCODE"); - + getchar(); } @@ -192,7 +192,10 @@ case 'c': Compile(); break; - + case 'q': + clrscr(); + exit(0); + break; default: putchar('\a'); break;