⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lcd_saizi._c

📁 程序控制TFT全彩LCD显示屏
💻 _C
📖 第 1 页 / 共 3 页
字号:
0X97,0XC6,0X19,0XE7,0XD8,0XE6,0X19,0XEF,0X18,0XEF,0X78,0XF7,0XFB,0XFF,0XB9,0XFF,
0XB9,0XFF,0XD9,0XFF,0XB8,0XFF,0XB8,0XFF,0XD9,0XFF,0XD8,0XFF,0XD9,0XFF,0XD9,0XFF,
0XD9,0XFF,};


void display_dot9(unsigned char const *pic)
{
 unsigned int c,s;
 unsigned char data1,data2;
 unsigned int no=0;
addr4(44,0,29,29);
    for(c=0;c<30;c++)
	{
	for(s=0;s<30;s++)
	     {
		 	  data1=pic[no+1];
			  data2=pic[no];
              writed(data1);writed(data2);
			  no++;
			  no++;
	     }
        }
}
void display_dot9b(void)
{
 unsigned int c,s;
 unsigned char data1,data2;
 unsigned int no=0;
addr4(44,0,29,29);
    for(c=0;c<30;c++)
	{
	for(s=0;s<30;s++)
	     {
		 	  data1=0xbf;
			  data2=0xb7;
              writed(data1);writed(data2);
			  no++;
			  no++;
	     }
        }
}
void display_dot99(unsigned char const *pic)
{
 unsigned int c,s;
 unsigned char data1,data2;
 unsigned int no=0;
addr4(98,48,29,29);
    for(c=0;c<30;c++)
	{
	for(s=0;s<30;s++)
	     {
		 	  data1=pic[no+1];
			  data2=pic[no];
              writed(data1);writed(data2);
			  no++;
			  no++;
	     }
        }
}
void display_dot99b(void)
{
 unsigned int c,s;
 unsigned char data1,data2;
 unsigned int no=0;
 addr4(98,48,29,29);
    for(c=0;c<30;c++)
	{
	for(s=0;s<30;s++)
	     {
		 	  data1=0xbf;
			  data2=0xb7;
              writed(data1);writed(data2);
			  no++;
			  no++;
	     }
        }
}
void display_dot88(unsigned char const *pic)
{
 unsigned int c,s;
 unsigned char data1,data2;
 unsigned int no=0;
addr4(44,98,29,29);
    for(c=0;c<30;c++)
	{
	for(s=0;s<30;s++)
	     {
		 	  data1=pic[no+1];
			  data2=pic[no];
              writed(data1);writed(data2);
			  no++;
			  no++;
	     }
        }
}
void display_dot88b(void)
{
 unsigned int c,s;
 unsigned char data1,data2;
 unsigned int no=0;
 addr4(44,98,29,29);
    for(c=0;c<30;c++)
	{
	for(s=0;s<30;s++)
	     {
		 	  data1=0xbf;
			  data2=0xb7;
              writed(data1);writed(data2);
			  no++;
			  no++;
	     }
        }
}
void display_dot8(unsigned char const *pic)
{
 unsigned int c,s;
 unsigned char data1,data2;
 unsigned int no=0;
 addr4(0,48,29,29);
    for(c=0;c<30;c++)
	{
	for(s=0;s<30;s++)
	     {
		 	  data1=pic[no+1];
			  data2=pic[no];
              writed(data1);writed(data2);
			  no++;
			  no++;
	     }
        }
}
void display_dot8b(void)
{
 unsigned int c,s;
 unsigned char data1,data2;
 unsigned int no=0;
 addr4(0,48,29,29);
    for(c=0;c<30;c++)
	{
	for(s=0;s<30;s++)
	     {
		 	  data1=0xbf;
			  data2=0xb7;
              writed(data1);writed(data2);
			  no++;
			  no++;
	     }
        }
}
void display_dotdq(unsigned char const *pic)
{
 unsigned int c,s;
 unsigned char data1,data2;
 unsigned int no=0;
 addr4(46,46,34,34);
    for(c=0;c<35;c++)
	{
	for(s=0;s<35;s++)
	     {
		 	  data1=pic[no+1];
			  data2=pic[no];
              writed(data1);writed(data2);
			  no++;
			  no++;
	     }
        }
}
void dis_saizi(void)
{
 	 	display_dot9(s1);
		display_dotdq(dq1);
		display_dot9b();
		delay_1(5);
//		display_dot7(0xff,0x98);
		display_dot99(s2);
		display_dotdq(dq1);
		display_dot99b();
		delay_1(5);
//		display_dot7(0xff,0x98);
		display_dot88(s1);
		display_dotdq(dq1);
		display_dot88b();
		delay_1(5);
//		display_dot7(0xff,0x98);
		display_dot8(s2);
		display_dotdq(dq1);
		display_dot8b();
		delay_1(5);
//		display_dot7(0xff,0x98);

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -