#include <reg51.h>
/* http://ttmcu.taobao.com 雨亭电子
代码测试环境:JME-2核心板+1T指令周期的STC单片机(51内核STC12LE5A60S2)+33M晶振 单片机工作电压3.3V
程序默认IO连接方式:
sce-P0^0; res-P0^1; dc-P0^2; sdin-P1^5; sclk-P1^7;
*/
sbit sce = P2^0; //片选
sbit res = P2^1; //复位,0复位
sbit dc = P2^2; //1写数据,0写指令
sbit sdin = P2^3; //数据
sbit sclk = P2^4; //时钟
unsigned char code hanzi[]=
{
/*-- 调入了一幅图像:C:\Users\Administrator.PC-20111029FWWQ\Desktop\logo.bmp --*/
/*-- 宽度x高度=103x49 --*/
/*-- 高度不是8的倍数,现调整为:宽度x高度=103x56 --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0xC0,0xC0,0xC0,0xE0,0xE0,0xE0,0xF0,0x70,
0x70,0x30,0x38,0x38,0x18,0x18,0x1C,0x0C,0x0C,0x0C,0x0E,0x86,0x86,0xC6,0xC6,0xE6,
0xE3,0xF3,0xF3,0xF3,0xFB,0xFB,0xF8,0xF8,0xF8,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,
0xFC,0xFC,0xFC,0xFC,0xFC,0xF8,0xF8,0xF8,0xF8,0xF0,0xF0,0xF0,0xE0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x06,0x06,0x8C,0xFC,0xF8,0xF8,0xF8,0xF0,0xE0,
0xC0,0x9C,0x3E,0x3F,0x3F,0x3E,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0xC0,0xC0,0xE0,0xF0,0xF8,0xF8,0xFC,0xFC,0xFE,0xFE,0xFF,0xFF,0xFF,0x1F,0x0F,0x07,
0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x7C,0xFE,
0x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0x7F,0x7F,0x7F,0x7F,0x7F,0x3F,0x3F,0x3F,0x1F,0x1F,0x1F,
0x0F,0x0F,0x07,0x87,0xC3,0xC1,0xC0,0x40,0x60,0x60,0x60,0x30,0x30,0x30,0x18,0x18,
0x1C,0x0C,0x0E,0x06,0x07,0x07,0x03,0x03,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0x30,0xF0,
0xE0,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0x00,0x01,0x01,0x01,0x03,0xE3,0xF3,0xF2,
0x06,0x00,0x00,0x00,0x00,0x00,0xE0,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0xE0,0xF0,
0x30,0xF0,0xF0,0x00,0x00,0x00,0x00,0xE0,0xF0,0x30,0xF0,0xF0,0x00,0x00,0x00,0x00,
0x00,0xF0,0xF0,0xE0,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xF0,0xF0,0x00,
0x00,0x00,0x00,0x00,0x00,0xE0,0xF0,0xF0,0xF0,0xF0,0xE0,0x00,0x00,0x00,0xE0,0xF0,
0x30,0xF0,0xE0,0xE3,0xE7,0x8E,0xFC,0xF8,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,
0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0x80,0x80,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,
0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x80,0xE0,0xE0,0x00,0x00,0x00,0x00,0xFF,0xFF,
0x80,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x80,0x80,0x00,0x00,
0x00,0x00,0xF0,0xFF,0x3F,0xFF,0xFF,0xC0,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFB,0x00,0x00,0x00,0xE3,0xE7,0x8E,0xFC,0xF8,0x01,0x01,0x01,0x01,0x01,0x00,