2013-6-26 04:31 上传
点击文件名下载附件
下面是源代码预览:
#include
#include
#define DATAOUT P2 //P2 use as data, you can change
#define SPEED 13
void ymove(char dir,unsigned char *ptr,char speed);
void xmove(char dir,unsigned char *ptr,char n,char speed);
void delay(unsigned int a);
void display();
void displaytime(char time);
void init164();
sbit ADATA= DATAOUT^0;
sbit ASCK= DATAOUT^1;
sbit LATCH= DATAOUT^2;
sbit BDATA= DATAOUT^3;
sbit BCLK= DATAOUT^4;
code unsigned char xin[32]={
0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x38, //心
0x1F,0x7C,0x3F,0xFE,0x3F,0xFE,0x3F,0xFE,
0x1F,0xFC,0x0F,0xF8,0x07,0xF0,0x03,0xE0,
0x01,0xC0,0x00,0x80,0x00,0x00,0x00,0x00};
code unsigned char zhong[32]={
0x01,0x00,0x01,0x00,0x01,0x04,0x7F,