查看: 1544|回复: 0
打印 上一主题 下一主题

031、8X8点阵应用演示程序

[复制链接]
跳转到指定楼层
沙发
发表于 2015-4-20 16:09:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

#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;

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?加入中科因仑

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入中科因仑

本版积分规则

快速回复 返回顶部 返回列表