本文包含原理图、PCB、源代码、封装库、中英文PDF等资源
您需要 登录 才可以下载或查看,没有账号?注册会员
×
我把我的程序给大家看看,看我错到哪儿啦?帮我改改主程序啦!谢谢啦!
#include <reg51.h>
#include <intrins.h>
#define uint8_t unsigned char
#define uint16_t unsigned int
#define nop() _nop_()
#define DATA_PORT P0
void WriteCom(uint8_t CMD);
void WriteDat(uint8_t DAT);
void Delay(uint16_t ms);
uint8_t CheckBusy(void);
void Draw_Pic(uint8_t x, uint8_t y, char *Draw);
void Picture_Set_XY(uint8_t x, uint8_t y);
void Char_Set_XY(uint8_t x, uint8_t y, uint8_t *p);
void Lcd_Init(void);
void Set_Draw(void);
sbit RS = P2^0;
sbit RW = P2^1;
sbit EN = P2^2;
sbit sclk = P1^5;
sbit io = P1^6;
sbit reset = P1^7;
code uint8_t PIC1[64][16]={
/*-- --*/
/*-- 宽度x高度=128x64 --*/
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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC1,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xFC,0x00,0x00,0x3F,0xDF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0x0E,0x00,0x00,0x1F,0xCE,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0C,0x03,0xE0,0x00,0x07,0xFE,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x18,0x03,0x80,0x00,0x01,0xFE,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x60,0x00,0x10,0x02,0x40,0x00,0x00,0x1F,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x60,0x00,0x10,0x00,0x40,0x00,0x00,0x1F,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x7F,0xFF,0xF0,0x00,0x60,0x00,0x07,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x60,0x00,0x00,0x1E,0x60,0x00,0x0F,0xFC,0x70,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x60,0x00,0x00,0x63,0x70,0x00,0x0F,0x8C,0x70,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x60,0x00,0x00,0x41,0x40,0x00,0x0E,0x0E,0x30,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x60,0x00,0x00,0x41,0x40,0x00,0x06,0x0E,0x30,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x60,0x01,0xF0,0x41,0xE0,0x00,0x07,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x60,0x07,0x90,0x41,0xC0,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x60,0x1C,0x14,0x61,0x80,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x61,0xF0,0x1C,0x7F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3F,0x00,0x0F,0xCC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x38,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x10,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,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,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,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,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,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,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,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x80,0x00,0x00,0x00,0x07,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0xE0,0x00,0x00,0x00,0x03,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0x60,0x00,0x00,0x00,0x1F,0x98,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x07,0x60,0x00,0x00,0x03,0xFF,0x4C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0F,0xF0,0x00,0x00,0x04,0xC1,0xC4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1F,0xF8,0x00,0x00,0x0E,0x3F,0xC1,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1F,0x9C,0x00,0x00,0x0B,0x69,0xC1,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3F,0xEE,0x00,0x00,0x09,0x8F,0xC1,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3F,0xE7,0x00,0x06,0x18,0x8C,0x60,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3F,0xFB,0x80,0xFF,0xF9,0xD9,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3F,0xFD,0xC1,0x80,0x7F,0xFF,0xC0,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1F,0xFE,0x71,0x00,0x18,0x7F,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3F,0xFF,0x1F,0x00,0x00,0x1C,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x7F,0xFF,0xE1,0x00,0x19,0x70,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1F,0xFF,0xFF,0x80,0x31,0xE0,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0F,0xFF,0xFF,0x80,0x24,0x38,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xFF,0xFF,0xC0,0x24,0x0E,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x7F,0xFF,0xDE,0x3C,0x03,0xC3,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x03,0xFF,0xFF,0xFC,0x00,0x66,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x40,0x07,0x80,0x3D,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x06,0xE0,0x0F,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x07,0xB8,0x07,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0x8E,0x08,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
code uint8_t PIC2[64][16]={
/*-- --*/
/*-- 宽度x高度=128x64 --*/
0x00,0x00,0x00,0x04,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0C,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x3F,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1F,0x76,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x3F,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x60,0xF8,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x10,0xC0,0x39,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1C,0x80,0x19,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1F,0x80,0x19,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x17,0x00,0x1B,0xC0,0x00,0x00,0x04,0x3C,0x30,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x10,0x00,0x1B,0xE0,0x00,0x00,0x0E,0x3F,0x30,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x10,0x0E,0x18,0xFC,0x00,0x00,0x0F,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1F,0x18,0xFF,0x00,0x00,0x03,0xF7,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x30,0x98,0xFF,0xE0,0x00,0x01,0xF3,0x70,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x30,0xDE,0xFF,0xF8,0x00,0x00,0x7F,0x30,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xE0,0x5C,0xFF,0xFF,0x00,0x00,0x3F,0x30,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0xE0,0x58,0xFF,0xFF,0xC0,0x00,0x07,0x30,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1F,0xE0,0x58,0x7F,0xFF,0xF8,0x07,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1F,0xE0,0x58,0xFF,0xFF,0xFE,0x0F,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1C,0xE0,0x59,0xFF,0xFF,0xFE,0x0E,0x7F,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1C,0xE0,0x5B,0xFF,0xFF,0xFE,0x0E,0x0C,0x30,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x10,0x70,0xD9,0xFF,0xFF,0xFC,0x0E,0x0C,0x30,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x07,0x30,0xB1,0xFF,0xFF,0xFC,0x06,0x0C,0x70,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0F,0x39,0xC0,0xFF,0xFF,0xF8,0x06,0x0C,0x70,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0xBF,0x16,0xFF,0xFF,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xF8,0x1F,0xFF,0xFF,0xF8,0x00,0x00,0x00, |