STM32示波器程序ILI9341 IO模拟源程序+Proteus仿真

本文完整源码和仿真文件下载:

暂无优惠

已有1人支付

设计要求:见图片

仿真原理图如下(proteus仿真工程文件可到本文附件中下载)

部分源码

uint8 x_1= 0,y_1 = 0;
uint8 x_2= 0,y_2 = 0;
uint8 x_3= 0,y_3 = 0;
uint8 x_4= 0,y_4 = 0;
uint8 x_5= 0,y_5 = 0;
uint8 t4_PianYi_x = 0,t4_PianYi_y = 0;
uint8 t5_PianYi_x = 0,t5_PianYi_y = 0;
int i  = 0 ;

for( i= 0;i<t1*3;i )
{                 x_1 = 10 i;
y_1 = bmp_PianYi_y-x_1*1;
GUI_DrawPoint(x_1,y_1-10,BLUE);//AD
GUI_DrawPoint(x_1,y_1,BRRED);
}
for( i=0;i<10;i )
{
GUI_DrawPoint(x_1,200-i,BLACK);
}
Show_Str(x_1-(t1*3)/2,200,BLACK,GRAY,"t1",12,1);

x_2 = x_1;
y_2 = y_1;
for( i = 0;i<t2*3;i )
{
x_2 ;
GUI_DrawPoint(x_2,y_2-10,BLUE);//AD
GUI_DrawPoint(x_2,y_2,BRRED);
}
for( i=0;i<10;i )
{
GUI_DrawPoint(x_2,200-i,BLACK);
}
Show_Str(x_2-(t2*3)/2,200,BLACK,GRAY,"t2",12,1);

x_3=x_2;  y_3 =y_2;
for( i= 0;i<t3*3;i )
{
x_3 ;
y_3 = y_3 - 1;   //1ÎaÏμêy
GUI_DrawPoint(x_3,y_3-10,BLUE);//AD
GUI_DrawPoint(x_3,y_3,BRRED);
}
for( i=0;i<10;i )
{
GUI_DrawPoint(x_3,200-i,BLACK);
}
Show_Str(x_3-(t3*3)/2,200,BLACK,GRAY,"t3",12,1);

t4_PianYi_x = x_3 (t4*3)/2;
t4_PianYi_y = y_3 (((t4/2)*3)*((t4/2)*3)*0.07);
for( i = - (t4/2)*3;i< (t4/2)*3 ; i )
{
x_4 = t4_PianYi_x i;
y_4 = t4_PianYi_y (- i*i*0.07);//1ÎaÏμêy
GUI_DrawPoint(x_4,y_4-10,BLUE);//AD
GUI_DrawPoint(x_4,y_4,BRRED);
}
for( i=0;i<10;i )
{
GUI_DrawPoint(x_4,200-i,BLACK);
}
Show_Str(x_4-(t4*3)/2,200,BLACK,GRAY,"t4",12,1);                t5_PianYi_x = x_4 (t5*3)/2;
t5_PianYi_y = y_4   pow(0.92, -(t5*3)/2);
//        LCD_DrawLine(100, 10, 100, 200);
for( i = - (t5*3)/2;i< (t5*3)/2 ; i )
{
x_5= t5_PianYi_x i;
y_5 = t5_PianYi_y - pow(0.92,i );
GUI_DrawPoint(x_5,y_5-10,BLUE);//AD
GUI_DrawPoint(x_5,y_5,BRRED);
}
for( i=0;i<10;i )
{
GUI_DrawPoint(x_5,200-i,BLACK);
}
Show_Str(x_5-(t5*3)/2,200,BLACK,GRAY,"t5",12,1);
for(i = 0;i<10;i )
{GUI_DrawPoint(20 i,210,BLUE);  Show_Str(30,210,BLUE,YELLOW,"AD",12,0);        }
for(i = 0;i<10;i )
{GUI_DrawPoint(20 i,222,BRRED); Show_Str(30,222,BRRED,YELLOW,"DA",12,0);  }
for(i= 0;i<10;i )
{  GUI_DrawPoint(10 i,200-50,BLACK); Show_Str(0,200-50,BLACK,GRAY,"1",12,1);   }
for(i= 0;i<10;i )
{  GUI_DrawPoint(10 i,200-100,BLACK); Show_Str(0,200-100,BLACK,GRAY,"2",12,1);   }
for(i= 0;i<10;i )
{  GUI_DrawPoint(10 i,200-150,BLACK); Show_Str(0,200-150,BLACK,GRAY,"3",12,1);   }

}

 

1,本站所有资源来源于用户上传和网络搜集,如有侵权请邮件联系站长删除。
2,分享目的仅供大家个人的学习用途,请不要用于商业用途。
3,如果你也有好的源码或者教程,可以投稿到本站,采纳后有积分奖励。
4,本站提供的各类资源均不保证其可用性及完整性,也没有任何技术服务。
5,如有链接无法下载、失效、过期,请联系管理员处理。
6,本站资源部分需要积分只是赞助,仅用于本站服务器和日常运营所需,不提供任何技术支持。
快捷联系方式 Email:admin@lzbk.com QQ:361113272
蓝知博库 » STM32示波器程序ILI9341 IO模拟源程序+Proteus仿真

提供最优质的资源集合

立即查看 了解详情