12864液晶例子程序(C语言)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

/*******************************************************************************

* 描述: *

* 12864标准字库液晶演示数据p0,控制p2 *

********************************************************************************

/

#include

#include

#define uchar unsigned char

#define uint unsigned int

/************* 12864LCD引脚定义 *************/

#define LCD_data P0 //数据口

sbit LCD_RS = P2^6; //寄存器选择输入

sbit LCD_RW = P2^5; //液晶读/写控制

sbit LCD_EN = P2^7; //液晶使能控制

sbit LCD_PSB = P3^2; //串/并方式控制

sbit LCD_RST = P3^7; //液晶复位端口

#define delayNOP(); {_nop_();_nop_();_nop_();_nop_();};

/*********************************************************/

uchar code DIS1[] = {" 普中科技 "};

uchar code DIS2[] = {"自学单片机第一站"};

uchar code DIS3[] = {" "};

uchar code DIS4[] = {"TEL:755-29325187"};

/*********************************************************/

uchar code Photo1[] ={

0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x01,0x3F,0xC0,

0x80,0x42,0x04,0x20,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x8A,0x1F,

0xFC,0x42,0x04,0xF8,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x80,

0x01,0xFF,0xDE,0x88,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x01,0x2A,0x87,

0xF0,0xA2,0x0A,0xF8,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0xBF,0x84,

0x10,0xA2,0x0A,0x88,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x1F,

0xFC,0xA2,0x0A,0xF8,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x9F,0x90,

0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x03, 0xE1,0xA8,0x4A,0xA8,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0xBF,0xC2, 0x24,0x48,0x44,0x90,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x92,0x84, 0x24,0xA8,0x4A,0xA8,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0xA6,0x58, 0x3D,0x0F,0xD0,0xC4,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x1C,0xFF,0xC0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x23,0x08,0x37,0x80,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x40,0x10,0x08,0x40,0x00,0xFF,0x90, 0x10,0x08,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x81,0x86,0x10,0x40,0x00,0x08,0x08, 0x10,0xFF,0x86,0x00,0x00,0x00,0x00,0x00, 0x01,0x02,0x49,0x40,0x40,0x00,0x7F,0x0B, 0xFC,0x08,0x0F,0x00,0x00,0x00,0x00,0x00, 0x01,0x08,0x00,0x40,0x20,0x00,0x10,0x00, 0x10,0x49,0x0F,0x00,0x00,0x00,0x00,0x00, 0x02,0x08,0x00,0x20,0x20,0x01,0xFF,0xDD, 0x10,0x2A,0x0F,0x00,0x00,0x00,0x00,0x00, 0x04,0x31,0x83,0x20,0x20,0x00,0x20,0x04, 0x91,0xFF,0xC6,0x00,0x00,0x00,0x00,0x00, 0x04,0x52,0x44,0x90,0x20,0x00,0x7F,0x04, 0x90,0x1C,0x06,0x00,0x00,0x00,0x00,0x00, 0x09,0xA4,0x28,0x4C,0x10,0x00,0xA1,0x04, 0x10,0x2A,0x00,0x00,0x00,0x00,0x00,0x00, 0x0E,0x44,0xE9,0xC3,0x90,0x01,0x3F,0x04, 0x70,0x49,0x06,0x00,0x00,0x00,0x00,0x00, 0x00,0x82,0xC5,0x81,0x70,0x00,0x21,0x0A, 0x01,0x88,0xC6,0x00,0x00,0x00,0x00,0x00, 0x01,0x01,0x83,0x00,0x80,0x00,0x3F,0x11, 0xFC,0x08,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x0C,0x70,0x00,0x80,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x02,0x13,0x87,0x10,0x40,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x02,0x20,0x78,0xA0,0x40,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x02,0x20,0x00,0x60,0x40,0x00,0x00,0x00,

相关文档
最新文档