Retrieved from https://studentshare.org/technology/1515768-telemetry-can-network
https://studentshare.org/technology/1515768-telemetry-can-network.
When the OFF is pressed, motor should be switched OFF and the green button should be visible. 3. Similarly, fan has to be switched ON when the ON button is pressed and the green button should be removed and only the red button should be ON with OFF on it. When the OFF is pressed, fan should be switched OFF and the green button should be visible. . #include #include #include #include #include #include #include #include #include #include /* check the colours !!!! */int black = 0;int deepblue = 1;int deepgreen = 2;int deepcyan = 3;int deepred = 4;int deepmagenta= 5;int brown = 6;int gray = 7;int blue = 8;int green = 10;int cyan = 11;int red = 12;int magenta = 13;int yellow = 14;int white = 15;int yline0= 0 ; /* position of a Y line */int yline1= 20 ; /* position of a Y line */int yline2= 40 ; /* position of a Y line */int yline3= 60 ; /* position of a Y line */int yline4= 80 ; /* position of a Y line */int yline5= 100 ; /* position of a Y line */int yline6= 120 ; /* position of a Y line */int yline7= 140; /* position of a Y line */int yline8= 160; /* position of a Y line */int yline9= 180; /* position of a Y line */int yline10 = 200 ; /* position of a Y line */int yline11 = 220 ; /* position of a Y line */int yline12 = 240 ; /* position of a Y line */int yline13 = 260 ; /* position of a Y line */int yline14 = 280 ; /* position of a Y line */int yline15 = 300 ; /* position of a Y line */int yline16 = 320 ; /* position of a Y line */int yline17 = 340; /* position of a Y line */int yline18 = 360 ; /* position of a Y line */int yline19 = 380 ; /* position of a Y line */int yline20 = 400 ; /* position of a Y line */int yline21 = 420 ; /* position of a Y line */int yline22 = 440 ; /* position of a Y line */int yline23 = 460 ; /* position of a Y line */void heading(char *string);void centreline(char *string);void gcls(void) ;void gsolidrectangle(int x1, int y1, int x2, int y2,int col);/* Graphics Card
...Download file to see next pages Read More