#include"stc15f2k60s2.h"
#define uchar unsigned char
#define uint unsigned int
///数据端口接 P0
sbit lcdrs=P2^7;//端口定义
sbit lcdrw=P2^6;//端口定义
sbit lcden=P2^5;//端口定义
uchar num;
uchar code table[]={
0x00,0x00,0x00,0x1F,0x00,0x00,0x00,0x00,//一 0x00
0x00,0x04,0x1f,0x15,0x15,0x1f,0x04,0x04,//中 0x01
0x1F,0x04,0x04,0x06,0x05,0x04,0x04,0x04,//下 0x02
0x1F,0x04,0x1F,0x15,0x1F,0x15,0x1F,0x15,//雨 0x03
0x00,0x00,0x00,0x00,0x1e,0x12,0x12,0x12,//"叶1653"左上半部分代码 0x04
0x04,0x04,0x04,0x04,0x04,0x04,0x1f,0x04,//"叶"右上半部分代码 0x05
0x12,0x12,0x12,0x1e,0x00,0x00,0x00,0x00,//"叶"左下半部分代码 0x06
0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,//"叶"右下半部分代码 0x07
//
};
uchar code table1[]={0x00,0x01,0x10,0x10,0x04,0x05,0x10,0x10,0x00,0x01,0x02,0x03,};//自定义字符数据