//Declarations------------------------------------------------------------------
const code char truck_bmp[1024];
//--------------------------------------------------------------end-declarations
cont1=1;
oldstate1 = 0;
}
if(onoff){
if(cont==1){
portc.f7=0;
Glcd_Image(Imagen_02_bmp);
Glcd_Write_Text("Jami Herrera", 0, 5, 1);
Glcd_Write_Text("Christian Alexander", 0, 6, 1);
Glcd_Write_Text("Grupo 1", 0, 7, 1);
delay_ms(5000);
Glcd_Fill(0x00);
}
cont=0;
if(cont1==1){
Glcd_Line(64-x,31+y , 64+x, 31+y, 0);
Glcd_Line(64-radio,31,64-x,31+y , 0);
Glcd_Line(64-radio,31,64-x,31-y , 0);
Glcd_Line(64-x,31-y , 64+x, 31-y, 0);
Glcd_Line(64+x, 31-y,64+radio,31, 0);
Glcd_Line(64+radio,31,64+x,31+y, 0);
Glcd_Circle(64, 31, radio, 0);
pot=Adc_Read(0);
radio=pot*0.0303030303030;
// Draw a circle with center in (50,50) and radius=10
Glcd_Circle(64, 31, radio, 1);
x=radio*sin(0.52359877);
y=radio*cos(0.52359877);
Glcd_Line(64-x,31+y , 64+x, 31+y, 1);
Glcd_Line(64-radio,31,64-x,31+y , 1);
Glcd_Line(64-radio,31,64-x,31-y , 1);
Glcd_Line(64-x,31-y , 64+x, 31-y, 1);
Glcd_Line(64+x, 31-y,64+radio,31, 1);
Glcd_Line(64+radio,31,64+x,31+y, 1);
}
cont1=0;
}else{
portc.f7=1;
Glcd_Fill(0x00);
}
}
}