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

📄 nwesed1335.c

📁 sed1335源代码
💻 C
📖 第 1 页 / 共 2 页
字号:
  SendCommand(CSRW);
  A0_L;
  for (loop=0;loop<2;loop++)
		SendData(scroll_ini1[loop]);
}
*/

/*
void LcdInit()
{
	unsigned int loop;
	SendCommand(SYSTEM_SET);

	for (loop=0;loop<8;loop++)
		SendData(C_SystemSetIni[loop]);
	
  SendCommand(SCROLL);
 
  for (loop=0;loop<10;loop++)
		SendData(C_ScrollIni[loop]);
	
  SendCommand(HDOT_SCR);
  
  SendData(0x00);
        
  SendCommand(OVLAY);
  
  SendData(0x0c);
        
  SendCommand(DISP_ON);
  
  SendData(0x55);
        
  SendCommand(CSRDIR_DOWN);
}
*/
/*
void TestDisplay()
{
	WriteChinese(1,(unsigned char *)kai);
	WriteChinese(321,(unsigned char *)shi);
	WriteChinese(641,(unsigned char *)du);
	WriteChinese(961,(unsigned char *)ka);
}
*/

/*
void WriteChinese(unsigned int address,unsigned char *word)
{
	unsigned int loop;
	SendCommand(CSRDIR_DOWN);
	SendAddress(address);
	SendCommand(MWRITE);
	A0_L;
	for(loop=0;loop<16;loop++)
  	SendData(word[loop]);
  A0_H;
	SendAddress(address-1);
	//SendAddress(address);
	SendCommand(MWRITE);
	A0_L;
	for(loop=16;loop<32;loop++)
  	SendData(word[loop]);
  A0_H;
}



void AdvWritechinese(unsigned int x,unsigned int y,unsigned char *word)
{
	unsigned int position;
	//position=x*20+(19-y);
	position=(x<<4)+(x<<2)+(19-y);
	WriteChinese(position,word);
}

void TestDisplay()
{
	AdvWritechinese(0,0,kai);
	AdvWritechinese(16,0,shi);
	AdvWritechinese(32,0,du);
	AdvWritechinese(48,0,ka);
	/*
	WriteChinese(1,kai);
	WriteChinese(321,shi);
	WriteChinese(641,du);
	WriteChinese(961,ka);
	*/
//}
//*/




/*
void WriteChar(unsigned int address,unsigned char *word)
{
	unsigned int loop;
	SendCommand(CSRDIR_DOWN);
	SendAddrsee(address);
	SendCommand(MWRITE);
	A0_L;
	for(loop=0;loop<8;loop++)
  	SendData(word[loop]);
  A0_H;
	SendAddrsee(address-1);
	SendCommand(MWRITE);
	A0_L;
	for(loop=8;loop<16;loop++)
  	SendData(word[loop]);
  A0_H;
}
*/

/*
ms1210_disp(1);
		clr_scr();
		sed1335_write(csrw,cur_set_ini3,2);	//csrw 光标指针设置cur_set_ini3[2]={0x60,0x09};
		for(j=0;j<4800;j++)
			sed1335_write(mwrite,fill,1);//mwrite 数据写入
long_delay(200);
*/


/*
		clr_scr();
		sed1335_write(csrw,cur_set_ini3,2);
		for(j=0;j<39;j++)
			sed1335_write(mwrite,fill,1);


		sed1335_write(csrdir_down,null,1);
		sed1335_write(mwrite,fill,1);
		for(j=0;j<238;j++)
		   sed1335_write(mwrite,kright,1);
		
		sed1335_write(csrdir_left,null,1);

		for(j=0;j<39;j++)
		   sed1335_write(mwrite,fill,1);

		sed1335_write(csrdir_up,null,1);
		sed1335_write(mwrite,fill,1);

		for(j=0;j<238;j++)
		   sed1335_write(mwrite,kleft,1);
		
		sed1335_write(csrw,cur_set_ini,2);
		sed1335_write(csrdir_right,null,1);

		for(j=0;j<150;j++)
		   sed1335_write(mwrite,word2,8);

		long_delay(200);

*/




                
                /*
                wr_word(19,0,guo,16,2);                 
                                 
                 //wr_word(1,0,guo,16,2);
                 wr_wordN(1,guo,16,2);
                 wr_wordN(321,guo ,16,2);
                 //wr_word(0x41,1,guo,16,2); 
                 wr_word(0x43,1,guo,16,2);
                 wr_word(0x47,1,guo,16,2);
                 
                 wr_word(0x81,2,guo,16,2); 
                 wr_word(0xc1,3,guo,16,2); 
                 wr_word(0x01,5,guo,16,2); 
                 wr_word(0x41,6,guo,16,2); 
                 wr_word(0x81,7,guo,16,2); 
                 wr_word(0x85,7,guo,16,2);
                 wr_word(0x87,7,guo,16,2);
                 
                j=0;
                m=20;
                n=1;
                for(t=0;t<18;t++)
                {
                  for (i=n;i<m;i=i+2)
                  {                  
                    wr_word(i,j,guo2,16,2);
                  }
                  n=n+321;
                  m=m+321;
                  j=j+1;
                
                }
                */
                /////////////////////////////////////
                /*
                j=0;
                m=20;
                n=1;
                for(t=0;t<18;t++)
                {
                  for (i=n;i<m;i=i+2)
                  {                  
                    wr_word(i,j,guo2,16,2);
                  }
                  n=n+4;
                  m=m+5;
                  j=j+1;
                
                }
                */
                ////////////////////////////////////////////////////////
                
               /* 
                j=0;
                for (i=1;i<20;i=i+2)
                {                    
                    wr_word(i,j,an1,16,2);
                }
                 j=1;
                for (i=5;i<24;i=i+2)
                {                    
                    wr_word(i,j,an1,16,2);
                }
                
                 j=2;
                for (i=9;i<28;i=i+2)
                {                    
                    wr_word(i,j,an1,16,2);
                }
                
                 j=3;
                for (i=13;i<32;i=i+2)
                {                    
                    wr_word(i,j,an1,16,2);
                }
                
                  j=4;
                for (i=17;i<36;i=i+2)
                {                    
                    wr_word(i,j,an1,16,2);
                }
                
                  j=5;
                for (i=21;i<40;i=i+2)
                {                    
                    wr_word(i,j,an1,16,2);
                }
                
                  j=6;
                for (i=25;i<44;i=i+2)
                {                    
                    wr_word(i,j,an1,16,2);
                }
                
                  j=7;
                for (i=29;i<48;i=i+2)
                {                    
                    wr_word(i,j,an1,16,2);
                }
                
                  j=8;
                for (i=33;i<52;i=i+2)
                {                    
                    wr_word(i,j,an1,16,2);
                }
                
                  j=9;
                for (i=37;i<56;i=i+2)
                {                    
                    wr_word(i,j,an1,16,2);
                }
                
                  j=10;
                for (i=41;i<60;i=i+2)
                {                    
                    wr_word(i,j,an1,16,2);
                }
                
                */
                //wr_word(3,j+1,an1,16,2);
                /*
                wr_word(5,j+1,an1,16,2);
                 wr_word(7,j+1,an1,16,2);
                  wr_word(9,j+1,an1,16,2);
                   wr_word(11,j+1,an1,16,2);
                    wr_word(13,j+1,an1,16,2);
                     wr_word(15,j+1,an1,16,2);
                      wr_word(17,j+1,an1,16,2);
                       wr_word(19,j+1,an1,16,2);
                        wr_word(21,j+1,an1,16,2);
                         wr_word(23,j+1,an1,16,2);
                          wr_word(25,j+1,an1,16,2);
                          */
/*
                  wr_word(9,j+1,an1,16,2);
                   wr_word(11,j+1,an1,16,2);
                    wr_word(13,j+1,an1,16,2);
                     wr_word(15,j+1,an1,16,2);
                      wr_word(17,j+1,an1,16,2);
                       wr_word(19,j+1,an1,16,2);
                        wr_word(21,j+1,an1,16,2);
                         wr_word(23,j+1,an1,16,2);
                          wr_word(25,j+1,an1,16,2);
                          
                 wr_word(9,j+2,an1,16,2);
                 wr_word(11,j+2,an1,16,2);
                 wr_word(13,j+2,an1,16,2);
                 wr_word(15,j+2,an1,16,2);
               */
                 /*
                 wr_word(0x0f,0x02,an1,16,2);
                  wr_word(0x01,0x06,an1,16,2);
                   wr_word(0x01,0x08,an1,16,2);
                   wr_word(0x01,0x0a,an1,16,2);
                   wr_word(0x01,0x0c,an1,16,2);
                   wr_word(0x01,0x10,an1,16,2);
                   wr_word(0x01,0x12,an1,16,2);
                */
               /* //wr_any(0xc6,0x17,an1,16,13);
                wr_any(0x01,0x00,an1,16,2);
                wr_any(0x01,0x02,an1,16,2);
                wr_any(0x01,0x04,an1,16,2);
                wr_any(0x01,0x06,an1,16,2);
                
                wr_any(0x02,0x02,an1,16,2);
                */
                   
                /*
                wr_word(0x68,0x0e,de,29,4);
		wr_word(0x6c,0x0e,li,29,4);
		wr_word(0x70,0x0e,guang,29,4);
		wr_word(0x74,0x0e,dian,29,4);
		wr_word(0x78,0x0e,ke,29,4);
		wr_word(0x7c,0x0e,ji,29,4);
                */
                
                
/*
		wr_any(0xc6,0x17,ando,60,26);


		long_delay(200);
		clr_scr();
		sed1335_write(csrw,cur_set_ini3,2);
		wr_any(0xc6,0x17,tu1,64,12);
		wr_any(0xd8,0x17,tu2,64,12);

		long_delay(200);
		clr_scr();
		sed1335_write(csrw,cur_set_ini3,2);
		sed1335_write(mwrite,box,9600);
*/

⌨️ 快捷键说明

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