51单片机-240128液晶程序与调试
ar i,j;
gotoxy(0,0);
for(j=0;j<32;j++)
{
for(i=0;i<60;i++)
{
lcd_datawrite(data1);
//delay1(1000);
}
for(i=0;i<60;i++)
{
lcd_datawrite(data2);
}
}
}
//---------------------------------------------
void lcd_character(uchar code *cha,int count) small
{
int i;
for(i=0;i { lcd_datawrite(*cha); ++cha; } } //--------------------------------------------- extern void gotoxy(uchar x,uchar y) small { lcd_regwrite(0x60,x); // active window top register(awtr) lcd_regwrite(0x70,y); // active window top register(awtr) } //============================================= void main (void) { lcd_reset(); lcd_initial(); lcd_clear(); while(1) { lcd_regwrite(0x00,0xcd); lcd_regwrite(0x10,0x2b); gotoxy(0x00,0x00); lcd_character(tab1,240); delay1(3000); lcd_regwrite(0x00,0xc5); lcd_lattice(0xcc,0xcc); delay1(3000); lcd_lattice(0x33,0x33); delay1(3000); lcd_photo(tab3); delay1(3000); lcd_regwrite(0x00,0xcd); lcd_regwrite(0x10,0x3b); gotoxy(0x00,0x00); lcd_character(tab2,240); delay1(3000); lcd_regwrite(0x00,0xc5); lcd_lattice(0xcc,0x33); delay1(3000); } }
51单片机240128液 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)