编写16x64LED点阵实现滚动显示汉字,怎么实现循环显示啊?不能用移位寄存器的C51编程 60
#include<reg52.h>#include<intrins.h>#defineucharunsignedchar#defineuintunsignedint#de...
#include <reg52.h>
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int
#define count 16 //级联个数
//定义Max7219端口
sbit Max7219_pinCLK = P2^2;
sbit Max7219_pinCS = P2^1;
sbit Max7219_pinDIN = P2^0;
uchar code disp1[16][8]=
{
{0X20,0X27,0X24,0X24,0X2C,0XB4,0XA7,0XA4},
{0X04,0XFE,0X04,0X44,0X44,0X44,0XFC,0X44},
{0X02,0X02,0X04,0X08,0X10,0X20,0X7F,0X00},
{0X00,0X00,0X00,0X20,0X10,0X08,0XFC,0X04},
{0x01,0x01,0x01,0x01,0x01,0xFF,0x01,0x02},
{0x00,0x00,0x00,0x00,0x04,0xFE,0x00,0x80},
{0x22,0x11,0x11,0x00,0x7F,0x40,0x80,0x1F},
{0x08,0x08,0x10,0x20,0xFE,0x02,0x04,0xE0},
{0x24,0x24,0x24,0x25,0x56,0x4C,0x87,0x04},
{0x44,0xA4,0x94,0x0C,0x0C,0x04,0xFC,0x04},
{0x00,0x1F,0x10,0x10,0x10,0x10,0x1F,0x10},
{0x10,0xF8,0x10,0x10,0x10,0x10,0xF0,0x10},
{0x02,0x02,0x04,0x04,0x08,0x18,0x60,0x00},
{0x80,0x40,0x40,0x20,0x10,0x0E,0x04,0x00},
{0x00,0x01,0xFF,0x01,0x01,0x01,0x05,0x02},
{0x40,0x84,0xFE,0x00,0x00,0x00,0x00,0x00},
};
void Delay_xms(uint x);
void Write_Max7219_byte(uchar DATA);//写入一字节
void Write_Max7219(uchar address1,uchar dat1,uchar address2,uchar dat2);
void Init_MAX7219(void);
// 锁存进相应寄存器
怎么才能实现滚动显示汉字啊?帮忙写写循环程序,谢谢了啊
怎么才能实现滚动显示汉字啊?帮忙写写循环程序,谢谢了啊 展开
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int
#define count 16 //级联个数
//定义Max7219端口
sbit Max7219_pinCLK = P2^2;
sbit Max7219_pinCS = P2^1;
sbit Max7219_pinDIN = P2^0;
uchar code disp1[16][8]=
{
{0X20,0X27,0X24,0X24,0X2C,0XB4,0XA7,0XA4},
{0X04,0XFE,0X04,0X44,0X44,0X44,0XFC,0X44},
{0X02,0X02,0X04,0X08,0X10,0X20,0X7F,0X00},
{0X00,0X00,0X00,0X20,0X10,0X08,0XFC,0X04},
{0x01,0x01,0x01,0x01,0x01,0xFF,0x01,0x02},
{0x00,0x00,0x00,0x00,0x04,0xFE,0x00,0x80},
{0x22,0x11,0x11,0x00,0x7F,0x40,0x80,0x1F},
{0x08,0x08,0x10,0x20,0xFE,0x02,0x04,0xE0},
{0x24,0x24,0x24,0x25,0x56,0x4C,0x87,0x04},
{0x44,0xA4,0x94,0x0C,0x0C,0x04,0xFC,0x04},
{0x00,0x1F,0x10,0x10,0x10,0x10,0x1F,0x10},
{0x10,0xF8,0x10,0x10,0x10,0x10,0xF0,0x10},
{0x02,0x02,0x04,0x04,0x08,0x18,0x60,0x00},
{0x80,0x40,0x40,0x20,0x10,0x0E,0x04,0x00},
{0x00,0x01,0xFF,0x01,0x01,0x01,0x05,0x02},
{0x40,0x84,0xFE,0x00,0x00,0x00,0x00,0x00},
};
void Delay_xms(uint x);
void Write_Max7219_byte(uchar DATA);//写入一字节
void Write_Max7219(uchar address1,uchar dat1,uchar address2,uchar dat2);
void Init_MAX7219(void);
// 锁存进相应寄存器
怎么才能实现滚动显示汉字啊?帮忙写写循环程序,谢谢了啊
怎么才能实现滚动显示汉字啊?帮忙写写循环程序,谢谢了啊 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询