📄 main.c
字号:
#include <reg52.h> // SFR declarations
#include <head.h>
#include <math.h>
#include <stdlib.h>
#define ALLOCATE_EXTERN
unsigned char x,y;
void main(void)
{
test();
while(1);
}
void test(void)
{
unsigned char i,dd;
unsigned char x,y;
Init();
EA = 1;
TI = 1;
LED= 0;
// while(1);
loop: write_chinese(0,0,yu);
write_chinese(16,0,xin);
write_chinese(31,0,dian);
write_chinese(46,0,zi);
write_chinese(61,0,you);
write_chinese(77,0,xian);
write_chinese(92,0,gong);
write_chinese(107,0,si);
write_chinese(0,2,d);
write_chinese(16,2,zhen);
write_chinese(31,2,ye);
write_chinese(46,2,jin);
write_chinese(61,2,xi);
write_chinese(77,2,s);
write_chinese(92,2,mo);
write_chinese(107,2,kuai);
delay(60000);
for(i=0;i<8;i++)
{
for(y=0;y<4;y++)
{
for(x=0;x<122;x++)
{
if(x%2==0)
lw(x,y,a[2*i]);
else
lw(x,y,a[2*i+1]);
}
}
delay(60000);
}
goto loop;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -