Mercurial Hosting > harelet
view harelet.c @ 1:47e1b1039d7b
Automated Vimcurial commmit
author | VilyaemKenyaz |
---|---|
date | Fri, 08 Sep 2023 07:12:34 -0400 |
parents | 36b2402700ad |
children | 1b0ebe86b44c |
line wrap: on
line source
/********************************************* * Description - Harelet is a CAD and compiler program for CNC milling machines * Author - William King * Date - Sep 08 2023 * *******************************************/ #include <stdio.h> #include <stdlib.h> #include "basedfilelib.h" #define DEEPNESS 5 #define MAXPOINT 4096 typedef struct{ unsigned int X,Y,down; }point; points[MAXPOINT]; unsigned int X,Y,step,down,numpoints; char action; /********************************************* * Description - Renders the screen * Author - William King * Date - Sep 08 2023 * *******************************************/ void Render(){ for(int i = 0;i != MAXPOINT;i++){ DocTop(); //Move X for(int j = 0;j != points[i].X;j++){ printf(""); } //Move Y for(int k = 0;k != points[i].Y;k++){ puts(""); } puts("X"); } } /********************************************* * Description - This function compiles instructions for CNC machines. * Author - William King * Date - Sep 08 2023 * *******************************************/ void Compile(){ char * filename; int choice; puts("Select your format\n1. RAW GCODE\n2. Superhare INO"); scanf("%d",&choice); puts("Enter the filename"); scanf("%s",filename); if(choice == 1){ } else{ } puts("Finished Compiling"); } /********************************************* * Description - Main function * Author - William King * Date - Sep 08 2023 * *******************************************/ void main(int argc, char* argv[]){ scanf("%c",&action); switch(action){ case 'a': numpoints++; break; case: break; default: break; } exit(0); }