玩轉LED點陣之二:16X64單紅點陣左移
//晶振:22.1184M,下載選擇雙倍時鐘,否則會有閃爍!
//顯示屏:HUB08接口16X64單紅點陣
//顯示方式:左移
//作者:振甬電子
//QQ: 1766135164
//網址:www.51hei.com
//時間:2013-05-13
#include
#include"zimo.h"
#define uchar
#define uint
#define SPEED
#define NUMBER
uchar word=0,col=0,col1=0,disrow=0,move=0;//wor為要顯字變量,col為位移變量,col1為字節(jié)偏移量,disrow為行變量
uchar BUFF__UP[17];
uchar BUFF__UP0[12];
sbit R1=P0^4;//紅色數(shù)據(jù)1
sbit R2=P3^3;//紅色數(shù)據(jù)2
sbit G1=P3^4;//綠色數(shù)據(jù)1
sbit G2=P3^5;//綠色數(shù)據(jù)
sbit CLK=P0^7; //595時鐘端口
sbit STB=P0^6; //595鎖存端口
sbit OE =P0^5;//74HC138使能:低有效
//根據(jù)列指針由雙字節(jié)合并為單字節(jié)的子程序模塊
//和點陣的取模方式有關:低位在前,高位在后,但是實際顯示,高位在前,低位在后!
uchar Combine_2byte(uchar h1,uchar h2)
{
}
//分別裝屏點陣數(shù)據(jù)
void Load_one_line(void)
{
}
//發(fā)送屏一線點陣數(shù)據(jù)
void Send_one_line(void)
{
}
//左移函數(shù)
void LEFT_MOVE()
{
}
//主函數(shù)入口
void main(void)
{
}
zimo.h
unsigned char code Table[][32]=
{
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,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,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,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,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
評論