|
NOKIA 5110的四行汉字的显示程序在诸位大侠的帮助下,我做出来了。主要的参考来自http://www.ourdev.cn/bbs/bbs_con ... ony&bbs_id=9999;但是由于自己的C语言功底不是很扎实,因此将程序改为如下
}
}
main()
{
unsigned char k;
sce=0;
res=0;
for(k=0;k<250;k++);
res=1;
LCD_init(); //³õʼ»¯LCDÄ£¿é
LCD_clear(); //ÇåÆÁÄ»
while(1)
{
//LCD_init(); //³õʼ»¯LCDÄ£¿é
LCD_clear(); //ÇåÆÁÄ»
LCD_write_hanzi(0,0,0);
LCD_write_hanzi(0,1,1);
LCD_write_hanzi(0,2,2);
LCD_write_hanzi(0,3,3);
LCD_write_hanzi(12,0,4);
LCD_write_hanzi(12,1,5);
LCD_write_hanzi(12,2,6);
LCD_write_hanzi(12,3,7);
LCD_write_hanzi(24,0,8);
LCD_write_hanzi(24,1,9);
LCD_write_hanzi(24,2,10);
LCD_write_hanzi(24,3,11);
LCD_write_hanzi(36,0,12);
LCD_write_hanzi(36,1,13);
LCD_write_hanzi(36,2,0);
LCD_write_hanzi(36,3,0);
LCD_write_hanzi(48,0,0);
LCD_write_hanzi(48,1,0);
// LCD_write_hanzi(48,2,9); //µÚÈý¸ö×ÖÂÒµã(ÕâÒ»ÐÐÇ°ÃæµÄÒ²±ä³ÉÁËÂÒÂ룩
LCD_write_hanzi(48,3,5); //²»ÍêÈ«ÕýÈ·
LCD_write_hanzi(60,0,1);
LCD_write_hanzi(60,1,1);
// LCD_write_hanzi(60,2,1); //£º¼ÓÉÏÕâ¸ö×ÖÖ®ºóËùÓÐ×Ö¶¼²»ÏÔʾ
LCD_write_hanzi(60,3,5); //£º×ÖÂÒµã
LCD_write_hanzi(72,0,0);
LCD_write_hanzi(72,1,1);
LCD_write_hanzi(72,2,2);
LCD_write_hanzi(72,3,9);
delayms(4000);
}}
但是不知道出于什么原因,在第五、六列的第三、四个子显示的是乱码?如有知道的大侠,还请指教 |
阿莫论坛20周年了!感谢大家的支持与爱护!!
曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……
|