求大神帮把下面的程序修改一下令屏幕只显示站名:XXXX 把其它的显示部分去掉。新手报到送上全部家当
#include <reg51.h>
#include <intrins.h>
#include<stdio.h>
#define uint unsigned int
#define uchar unsigned char
#define Port P0 //LCD12864数据线
sbit EN=P2^0; // 读写使能
sbit RW=P2^1; // 读写 选择
sbit RS=P2^2; // 数据指令 选择
sbit cs2=P2^3; // 片选2
sbit cs1=P2^4; // 片选1
int State_Count = 0 ;
int Run_Dir_P_Flag = 1;
int Run_Dir_N_Flag = 0;
int Next_Stat_Flag = 0 ;
sbit Key1 = P1^1;
sbit Key2 = P1^2;
sbit Key3 = P1^3;
/********************************/
/* 定义中文字库 */
/********************************/
uchar code Hzk[]={
/*-- 文字:站名: --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0x00,0xC8,0x08,0x09,0x0E,0xE8,0x08,0x00,0x00,0x00,0xFF,0x10,0x10,0x10,0x10,0x00,
0x10,0x30,0x17,0x10,0x0E,0x09,0x08,0xFF,0x41,0x41,0x41,0x41,0x41,0xFF,0x00,0x00,
0x00,0x20,0x20,0x10,0x08,0x14,0x67,0x84,0x44,0x24,0x14,0x0C,0x00,0x00,0x00,0x00,
0x04,0x04,0x04,0x02,0xFE,0x43,0x43,0x42,0x42,0x42,0x42,0x42,0xFE,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x36,0x36,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,/*" ",0*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*" ",1*/
/*-- 文字: 科技大学 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0x24,0x24,0xA4,0xFE,0xA3,0x22,0x00,0x22,0xCC,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,
0x08,0x06,0x01,0xFF,0x00,0x01,0x04,0x04,0x04,0x04,0x04,0xFF,0x02,0x02,0x02,0x00,
0x10,0x10,0x10,0xFF,0x10,0x90,0x08,0x88,0x88,0x88,0xFF,0x88,0x88,0x88,0x08,0x00,
0x04,0x44,0x82,0x7F,0x01,0x80,0x80,0x40,0x43,0x2C,0x10,0x28,0x46,0x81,0x80,0x00,/*"技",0*/
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xFF,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x00,
0x80,0x80,0x40,0x20,0x10,0x0C,0x03,0x00,0x03,0x0C,0x10,0x20,0x40,0x80,0x80,0x00,/*"大",1*/
0x40,0x30,0x11,0x96,0x90,0x90,0x91,0x96,0x90,0x90,0x98,0x14,0x13,0x50,0x30,0x00,
0x04,0x04,0x04,0x04,0x04,0x44,0x84,0x7E,0x06,0x05,0x04,0x04,0x04,0x04,0x04,0x00,/*"学",2*/
/*-- 文字: 温度: --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0x10,0x60,0x02,0x8C,0x00,0x00,0xFE,0x92,0x92,0x92,0x92,0x92,0xFE,0x00,0x00,0x00,
0x04,0x04,0x7E,0x01,0x40,0x7E,0x42,0x42,0x7E,0x42,0x7E,0x42,0x42,0x7E,0x40,0x00,/*"温",0*/
0x00,0x00,0xFC,0x24,0x24,0x24,0xFC,0x25,0x26,0x24,0xFC,0x24,0x24,0x24,0x04,0x00,
0x40,0x30,0x8F,0x80,0x84,0x4C,0x55,0x25,0x25,0x25,0x55,0x4C,0x80,0x80,0x80,0x00,/*"度",1*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x36,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*":",2*/
/*-- 文字: 时间: --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0x00,0xFC,0x84,0x84,0x84,0xFC,0x00,0x10,0x10,0x10,0x10,0x10,0xFF,0x10,0x10,0x00,
0x00,0x3F,0x10,0x10,0x10,0x3F,0x00,0x00,0x01,0x06,0x40,0x80,0x7F,0x00,0x00,0x00,/*"时",0*/
0x00,0xF8,0x01,0x06,0x00,0xF0,0x12,0x12,0x12,0xF2,0x02,0x02,0x02,0xFE,0x00,0x00,
0x00,0xFF,0x00,0x00,0x00,0x1F,0x11,0x11,0x11,0x1F,0x00,0x40,0x80,0x7F,0x00,0x00,/*"间",1*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x36,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*":",2*/
/*-- 文字: 王斌宇 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16 --*/
0x00,0x02,0x82,0x82,0x82,0x82,0x82,0xFE,0x82,0x82,0x82,0x82,0x82,0x02,0x00,0x00,
0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x7F,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00,/*"王",0*/
0x10,0x90,0x12,0x14,0xF0,0x10,0x20,0x24,0xA4,0x24,0x20,0xFF,0x20,0x22,0x2C,0x00,
0x40,0x20,0x19,0x06,0x39,0x40,0xFE,0x40,0x3F,0x22,0x20,0x0F,0x30,0x40,0xF0,0x00,/*"斌",1*/
0x10,0x0C,0x24,0x24,0x24,0x24,0x25,0xE6,0x24,0x24,0x24,0x24,0x24,0x14,0x0C,0x00,
0x02,0x02,0x02,0x02,0x02,0x42,0x82,0x7F,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x00,/*"宇",2*/
//南陵小区
0x04,0xE4,0x24,0x24,0x64,0xA4,0x24,0x3F,0x24,0xA4,0x64,0x24,0x24,0xE4,0x04,0x00,
0x00,0xFF,0x00,0x08,0x09,0x09,0x09,0x7F,0x09,0x09,0x09,0x48,0x80,0x7F,0x00,0x00,/*"南",0*/
0x00,0xFE,0x22,0x5A,0x86,0x00,0x20,0xA4,0x64,0xA4,0x3F,0x24,0x64,0xA4,0x20,0x00,
0x00,0xFF,0x04,0x08,0x07,0x80,0x89,0x44,0x46,0x2B,0x12,0x2A,0x46,0x80,0x81,0x00,/*"陵",1*/
0x00,0x00,0x00,0xE0,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x20,0x40,0x80,0x00,0x00,
0x08,0x04,0x03,0x00,0x00,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x00,0x01,0x0E,0x00,/*"小",2*/
0x00,0xFE,0x02,0x02,0x02,0x12,0x22,0x42,0x82,0x42,0x22,0x1A,0x02,0x02,0x00,0x00,
0x00,0x7F,0x40,0x40,0x48,0x44,0x42,0x41,0x40,0x41,0x42,0x4C,0x40,0x40,0x40,0x00,/*"区",3*/
//客运总站
0x10,0x0C,0x84,0x44,0xB4,0xA4,0x25,0x26,0x24,0xA4,0x64,0x24,0x04,0x14,0x0C,0x00,
0x04,0x04,0x04,0xFA,0x4A,0x4A,0x49,0x49,0x49,0x4A,0x4A,0xFA,0x04,0x04,0x04,0x00,/*"客",0*/
0x40,0x40,0x42,0xCC,0x00,0x20,0x22,0x22,0xA2,0x62,0x22,0x22,0x22,0x20,0x00,0x00,
0x00,0x40,0x20,0x1F,0x20,0x44,0x4E,0x45,0x44,0x44,0x44,0x45,0x46,0x4C,0x40,0x00,/*"运",1*/
0x00,0x00,0x00,0xF1,0x12,0x14,0x10,0x10,0x10,0x14,0x12,0xF1,0x00,0x00,0x00,0x00,
0x40,0x30,0x00,0x03,0x39,0x41,0x41,0x45,0x59,0x41,0x41,0x73,0x00,0x08,0x30,0x00,/*"总",2*/
0x00,0xC8,0x08,0x09,0x0E,0xE8,0x08,0x00,0x00,0x00,0xFF,0x10,0x10,0x10,0x10,0x00,
0x10,0x30,0x17,0x10,0x0E,0x09,0x08,0xFF,0x41,0x41,0x41,0x41,0x41,0xFF,0x00,0x00,/*"站",3*/
};
/****************************************/
/* 定义ASCII字库8列*16行 */
/****************************************/
uchar code Ezk[]={
/*-- 文字: 2 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00,/*"2",0*/
/*-- 文字: 5 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00,
/*-- 文字: . --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00,/*".",0*/
/*-- 文字: 7 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,/*"7",0*/
/*-- 文字: 摄氏单位 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0x00,0x18,0x24,0x24,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xC0,0x30,0x08,0x08,0x08,0x08,0x38,0x00,0x07,0x18,0x20,0x20,0x20,0x10,0x08,0x00,/*"C",0*/
0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,/*"1",0*/
0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,/*"1",1*/
0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,/*":",2*/
0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,/*"1",3*/
0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,/*"1",4*/
0x00,0x00,0x00,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,/*":",5*/
0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,/*"1",6*/
0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,/*"1",7*/
};
//数字
/****************************************/
/* 定义ASCII字库8列*16行 */
/****************************************/
uchar code DDzk[]={
/*-- 文字: 0 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x0F,0x10,0x20,0x20,0x10,0x0F,0x00,/*"0"
/*-- 文字: 1 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0x10,0x10,0xF8,0x00,0x00,0x00,0x00,0x00,0x20,0x20,0x3F,0x20,0x20,0x00,0x00,
/*-- 文字: 2 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0x70,0x08,0x08,0x08,0x88,0x70,0x00,0x00,0x30,0x28,0x24,0x22,0x21,0x30,0x00,/*".",0*/
/*-- 文字: 3 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0x30,0x08,0x88,0x88,0x48,0x30,0x00,0x00,0x18,0x20,0x20,0x20,0x11,0x0E,0x00,/*"7",0*/
/*-- 文字: 4 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0x00,0xC0,0x20,0x10,0xF8,0x00,0x00,0x00,0x07,0x04,0x24,0x24,0x3F,0x24,0x00,/*"7",0*/
/*-- 文字: 5 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0xF8,0x08,0x88,0x88,0x08,0x08,0x00,0x00,0x19,0x21,0x20,0x20,0x11,0x0E,0x00,/*"7",0*/
/*-- 文字: 6 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0xE0,0x10,0x88,0x88,0x18,0x00,0x00,0x00,0x0F,0x11,0x20,0x20,0x11,0x0E,0x00,/*"7",0*/
/*-- 文字: 7 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0x38,0x08,0x08,0xC8,0x38,0x08,0x00,0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,/*"7",0*/
/*-- 文字: 8 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0x70,0x88,0x08,0x08,0x88,0x70,0x00,0x00,0x1C,0x22,0x21,0x21,0x22,0x1C,0x00,/*"7",0*/
/*-- 文字: 9 --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0xE0,0x10,0x08,0x08,0x10,0xE0,0x00,0x00,0x00,0x31,0x22,0x22,0x11,0x0F,0x00,/*"7",0*/
/*-- 文字: . --*/
/*-- 宋体12; 此字体下对应的点阵为:宽x高=8x16 --*/
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0x00,0x00,0x00,0x00,0x00,/*".",0*/
};
/*状态检查,LCD是否忙*/
void Checkbusy()
{
uchar dat;//状态信息(判断是否忙)
RS=0; // 数据指令选择,D/I(RS)=“L” ,表示 DB7∽DB0 为显示指令数据
RW=1; //R/W=“H” ,E=“H”数据被读到DB7∽DB0
do
{
Port=0x00;
EN=1; //EN下降源
_nop_(); //一个时钟延时
dat=Port;
EN=0;
dat=(0x80 & dat);
}
while(!(dat==0x00)); //仅当第7位为0时才可操作(判别busy信号)
}
/*写命令到LCD中*/
Wcmd(uchar cmd)
{
Checkbusy();//状态检查,LCD是否忙
RS=0; //向LCD发送命令。RS=0写指令,RS=1写数据
RW=0;//R/W=“L” ,E=“H→L”数据被写到 IR 或 DR
Port=cmd; //com :命令
EN=1;//EN下降源
_nop_();
_nop_();
EN=0;
}
/*设置页 0xb8是页的首地址*/
void Setpage(uchar page)
{
page=0xb8|page; //1011 1xxx 0<=page<=7 设定页地址--X 0-7,8行为一页64/8=8,共8页
Wcmd(page);
}
/*设定显示开始行,0xc0是行的首地址*/
void Setx(uchar x)
{
x=0xc0|x; //1100 0000
Wcmd(x); //设置从哪行开始:0--63,一般从0 行开始显示
}
/*设定列地址--Y 0-63 ,0x40是列的首地址*/
void Sety(uchar y)
{
y=y&0x3f; //column最大值为64,越出 0=<column<=63
y= 0x40|y; //01xx xxxx
Wcmd(y);
}
/*开关显示,0x3f是开显示,0x3e是关显示*/
void SetOnOff(uchar onoff)
{
onoff=0x3e|onoff; //0011 111x,onoff只能为0或者1
Wcmd(onoff);
}
/*写显示数据 */
void Writedata(uchar dat)
{
Checkbusy();//状态检查,LCD是否忙
RS=1; //RS=0写指令,RS=1写数据
RW=0;////R/W=“L” ,E=“H→L”数据被写到 IR 或 DR
Port=dat;//dat:显示数据
EN=1; //EN下降源
_nop_();
_nop_();
EN=0;
}
/*选择屏幕screen: 0-全屏,1-左屏,2-右屏*/
void SelectScreen(uchar screen)
{
switch(screen)
{
case 0: cs1=0;//全屏
_nop_();
_nop_();
_nop_();
cs2=0;
_nop_();
_nop_();
_nop_();
break;
case 1: cs1=0;//左屏
_nop_();
_nop_();
_nop_();
cs2=1;
_nop_();
_nop_();
_nop_();
break;
case 2: cs1=1;//右屏
_nop_();
_nop_();
_nop_();
cs2=0;
_nop_();
_nop_();
_nop_();
break;
}
}
/*清屏screen: 0-全屏,1-左屏,2-右*/
void ClearScreen(uchar screen)
{
uchar i,j;
SelectScreen(screen);
for(i=0;i<8;i++) //控制页数0-7,共8页
{
Setpage(i);
Sety(0);
for(j=0;j<64;j++) //控制列数0-63,共64列
{
Writedata(0x00); //写点内容,列地址自动加1
}
}
}
/*延时程序*/
void delay(uint z)
{
uint i,j;
for(i=0; i<z; i++)
for(j = 0; j < 110; j++);
}
/*初始化LCD*/
void InitLCD()
{
Checkbusy();
SelectScreen(0);
SetOnOff(0); //关显示
SelectScreen(0);
SetOnOff(1); //开显示
SelectScreen(0);
ClearScreen(0);//清屏
Setx(0); //开始行:0
}
/*显示全角汉字*/
void Display(uchar ss,uchar page,uchar y,uchar number)
{
int i; //选屏参数,pagr选页参数,column选列参数,number选第几汉字输出
SelectScreen(ss);
y=y&0x3f;
Setpage(page); //写上半页
Sety(y); //控制列
for(i=0;i<16;i++) //控制16列的数据输出
{
Writedata(Hzk[i+32*number]); //i+32*number汉字的前16个数据输出
}
Setpage(page+1); //写下半页
Sety(y); //控制列
for(i=0;i<16;i++) //控制16列的数据输出
{
Writedata(Hzk[i+32*number+16]); //i+32*number+16汉字的后16个数据输出
}
}
/*显示半角汉字和数字和字母*/
void Displayen(uchar ss,uchar page,uchar y,uchar number)
{
uint i;//选屏参数,pagr选页参数,column选列参数,number选第几汉字输出
SelectScreen(ss);
y=y&0x3f;
Setpage(page); //写上半页
Sety(y);
for(i=0;i<8;i++)
{
Writedata(Ezk[i+16*number]);
}
Setpage(page+1); //写下半页
Sety(y);
for(i=0;i<8;i++)
{
Writedata(Ezk[i+16*number+8]);
}
}
//显示2位数字,第四个参数number必须在0-99之间。
void DisplayDD(uchar ss,uchar page,uchar y,uchar number)
{
uint i;//选屏参数,pagr选页参数,column选列参数,number要显示的两位数。
unsigned char str[24];
SelectScreen(ss);
y=y&0x3f;
if(number>99)
{
return;
}
sprintf(str, "%02u", (uint)number);
//the first data
Setpage(page); //写上半页
Sety(y);
for(i=0;i<8;i++)
{
Writedata(DDzk[i+16*(str[0]-0x30)]);
}
Setpage(page+1); //写下半页
Sety(y);
for(i=0;i<8;i++)
{
Writedata(DDzk[i+16*(str[0]-0x30)+8]);
}
//the second data
Setpage(page); //写上半页
Sety(y+8);
for(i=0;i<8;i++)
{
Writedata(DDzk[i+16*(str[1]-0x30)]);
}
Setpage(page+1); //写下半页
Sety(y+8);
for(i=0;i<8;i++)
{
Writedata(DDzk[i+16*(str[1]-0x30)+8]);
}
}
//按键扫描及处理
void Key_Process(void)
{
if(Key1 == 0)
{
while(Key1==0);
Run_Dir_P_Flag = 1;
Run_Dir_N_Flag = 0;
}
if(Key2 == 0)
{
while(Key2==0);
Run_Dir_P_Flag = 0;
Run_Dir_N_Flag = 1;
}
if(Key3 == 0)
{
while(Key3==0);
Next_Stat_Flag = 1;
}
if(Next_Stat_Flag == 1)
{
Next_Stat_Flag = 0;
if(Run_Dir_P_Flag ==1 )
{
State_Count ++;
if(State_Count>= 3)
{
State_Count = 0;
}
}
if(Run_Dir_N_Flag ==1 )
{
State_Count --;
if(State_Count < 0 )
{
State_Count = 2;
}
}
}
}
/*主函数*/
void main()
{
uint i;
InitLCD();//初始12864
ClearScreen(0);//清屏
Setx(0);//显示开始行
while(1)
{
Key_Process(); //按键扫描及处理
/* 可以多个显示,这里是4个一起显示*/
for(i=0;i<4;i++)
{
Display(1,0,i*16,i);//Display(选屏参数(cs0,cs1),pagr选页参数,column选列参数,number选第几汉字输出)
_nop_();
switch(State_Count)
{
case 0: Display(2,0,i*16,i+4); break; //科技大学
case 1: Display(2,0,i*16,i+17); break; //南陵小区
case 2: Display(2,0,i*16,i+21); break; //客运总站
default: break;
}
}
for(i=0;i<3;i++) //
{
Display(1,0+2,i*16,i+8);
_nop_();
Display(1,0+2+2,i*16,i+11);
_nop_();
}
for(i=0;i<3;i++) //
{
Display(2,0+2+2+2,(i+1)*16,i+14);
_nop_();
}
//温度的值
DisplayDD(2,0+2,0,98);
_nop_();
//显示℃
for(i=4;i<6;i++) //温度的值
{
Displayen(2,0+2,i*8,i);
_nop_();
}
//小时
DisplayDD(2,0+2+2,0,01);
i = 8;
Displayen(2,0+2+2,(i+2)*8,i); //:
_nop_();
//分钟
DisplayDD(2,0+2+2,(9+2)*8,00);
i = 11;
Displayen(2,0+2+2,(i+2)*8,i); //:
_nop_();
//秒
DisplayDD(2,0+2+2,(12+2)*8,00);
/*for(i=6;i<14;i++)
{
Displayen(2,0+2+2,(i+2)*8,i);
_nop_();
} */
}
}
-
-
一周热门 更多>