中科因仑“3+1”工程特种兵精英论坛
标题:
031、8X8点阵应用演示程序
[打印本页]
作者:
张衍波
时间:
2015-4-20 16:09
标题:
031、8X8点阵应用演示程序
#include<reg52.h>
#define uchar unsigned char //宏定义
code uchar jiantou[]={0x00,0x18,0x3C,0x7E,0x99,0x18,0x18,0x00,0x00,0x18,0x3C,0x7E,0x99,0x18,0x18,0x00,0x00,0x18,0x3C,0x7E,0x99,0x18,0x18,0x00,0x00,0x18,0x3C,0x7E,0x99,0x18,0x18,0x00};
code uchar ling[]={0x00,0x7C,0x44,0x44,0x44,0x44,0x44,0x7C};//定义数组 0
code uchar yi[]={0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x04};//定义数组 1
code uchar er[]={0x00,0x7C,0x04,0x04,0x7C,0x40,0x40,0x7C};//定义数组 2
code uchar san[]={0x00,0x7C,0x04,0x04,0x7C,0x04,0x04,0x7C};//定义数组 3
code uchar si[]={0x00,0x44,0x44,0x44,0x7C,0x04,0x04,0x04};//定义数组 4
code uchar wu[]={0x00,0x7C,0x40,0x40,0x7C,0x04,0x04,0x7C};//定义数组 5
code uchar liu[]={0x00,0x7C,0x40,0x40,0x7C,0x44,0x44,0x7C};//定义数组 6
code uchar qi[]={0x00,0x3C,0x04,0x04,0x04,0x04,0x04,0x04};//定义数组 7
code uchar ba[]={0x00,0x7C,0x44,0x44,0x7C,0x44,0x44,0x7C};//定义数组 8
code uchar jiu[]={0x00,0x7C,0x44,0x44,0x7C,0x04,0x04,0x7C};//定义数组 9
code uchar xin[]={0x00,0x66,0x99,0x81,0x81,0x42,0x24,0x18};//定义数组 心
code uchar sanjiao[]={0x00,0x00,0x10,0x28,0x44,0xFE,0x00,0x00};//定义数组 三角
code uchar zhang[]={0xE9,0x2A,0xEC,0x9F,0xEC,0x2A,0xED,0x00};//定义数组 “张”
code uchar f[]={0x7C,0x40,0x40,0x7C,0x40,0x40,0x40,0x40};//定义数组 字母“F”
sbit P20=P2^7;[attach]2357[/attach]
欢迎光临 中科因仑“3+1”工程特种兵精英论坛 (http://bbs.enlern.com/)
Powered by Discuz! X3.4