玩轉(zhuǎn)LED點陣之一:16X64單紅點陣靜態(tài)顯示
//晶振:22.1184M
//顯示屏:HUB08接口16X64單紅點陣
//顯示方式:靜態(tài)16X16漢字
//作者:huqin
//QQ: 1766135164
//網(wǎng)址:http://www.51hei.com
//時間:2013-05-13
#include
#include"zimo.h"
sbit SDAR1=P0^4; //紅色數(shù)據(jù)1
sbit SDAR2=P3^3; //紅色數(shù)據(jù)2
sbit SDAG1=P3^4; //綠色數(shù)據(jù)1
sbit SDAG2=P3^5; //綠色數(shù)據(jù)2
sbit CLK=P0^7;
sbit STB=P0^6;
sbit OE=P0^5;
void SendDate(unsigned char DataR1,unsigned char DataG1,unsigned char DataR2,unsigned char DataG2)
{
}
//主函數(shù)入口
void main()
{
}
zimo.h
unsigned char code Table[]={ //取模宋體
0x08,0x00,
0xC8,0x7F,
0x48,0x00,
0x7F,0x00,
0x48,0x3F,
0x68,0x00,
0xD8,0x7F,
0x48,0x03,
0x4C,0x25,
0x4B,0x65,
0x48,0x19,
0x48,0x11,
0x28,0x11,
0x28,0x65,
0x1A,0x23,
0x04,0x01,
0xFC,0x1F,
0x00,0x0C,
0x60,0x03,
0x80,0x00,
0xFC,0x1F,
0x84,0x10,
0x84,0x10,
0xFC,0x1F,
0x84,0x10,
0x84,0x10,
0xFC,0x1F,
0x84,0x10,
0x84,0x10,
0x84,0x10,
0x84,0x14,
0x04,0x08,
0x80,0x00,
0x80,0x00,
0x80,0x00,
0xFC,0x1F,
0x84,0x10,
0x84,0x10,
0xFC,0x1F,
0x84,0x10,
0x84,0x10,
0x84,0x10,
0xFC,0x1F,
0x84,0x10,
0x80,0x40,
0x80,0x40,
0x00,0x7F,
0x00,0x00,
0x00,0x00,
0xFC,0x0F,
0x00,0x04,
0x00,0x02,
0x00,0x01,
0x80,0x00,
0x80,0x00,
0x80,0x20,
0xFF,0x7F,
0x80,0x00,
0x80,0x00,
0x80,0x00,
0x80,0x00,
0x80,0x00,
0xA0,0x00,
0x40,0x00,
};
實際效果:
評論