12864液晶显示串行通信

时间:2014-08-11 04:33:29
【文件属性】:

文件名称:12864液晶显示串行通信

文件大小:10KB

文件格式:C

更新时间:2014-08-11 04:33:29

12864显示

12864液晶的显示与单片机串行通信。void main() { // LCD_C86 = 0; // LCD_PS = 0; LCD_Init(); Display_fill(0x00); //显示全暗 delay_ms(10); while(1) { Display_fill(0x00); //显示全暗 LCD_write_hanzi(0,0,0); //单 //row:列 page:页 dd:字符 LCD_write_hanzi(2,0,1); //片 LCD_write_hanzi(4,0,2); //机 LCD_write_hanzi(6,0,3); //开 LCD_write_hanzi(8,0,4); //发 LCD_write_hanzi(10,0,5); //工 LCD_write_hanzi(12,0,6); //作 LCD_write_hanzi(14,0,7); //室 LCD_write_shu(0,2,0); //0 LCD_write_shu(1,2,1); //1 LCD_write_shu(2,2,2); //2 LCD_write_shu(3,2,3); //3 LCD_write_shu(4,2,4); //4 LCD_write_shu(5,2,5); //5 LCD_write_shu(6,2,6); //6 LCD_write_shu(7,2,7); //7 LCD_write_shu(8,2,8); //8 LCD_write_shu(9,2,9); //9 delay_ms(20000); Display_fill(0x00); //显示全暗 } }


网友评论

  • 看起来不错,正在测试!不过我通过朋友获得一个更简易串行通信方法,整个12864只需单片机的两个引脚。