您的位置 首页 方案

51单片机8×8LED点阵显现数字与字符

includeAT89X52Hunsignedcharcodetab[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};unsignedcharcodedigit

#include “AT89X52.H”

unsigned charcode tab[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};

unsigned charcode digittab[][8]={

{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},//” “,0*/

{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},//” “,0*/

{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF},//”_”,0*/

{0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF},//”_”,0*/

{0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF},//”_”,0*/

{0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF},//”_”,0*/

{0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF},//”_”,0*/

{0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},//”_”,0*/

{0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},//”_”,0*/

{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},//”_”,0*/

{0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01},//”|”,0*/

{0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02},//”|”,0*/

{0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04},//”|”,0*/

{0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08},//”|”,0*/

{0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10},//”|”,0*/

{0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20},//”|”,0*/

{0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40},//”|”,0*/

{0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80},//”|”,0*/

{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF},//” “,0*/

//图形1

{0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00},//”未命名文件”,0*/

{0x00,0x00,0x3C,0x24,0x24,0x3C,0x00,0x00},//”未命名文件”,0*/

{0x00,0x7E,0x42,0x42,0x42,0x42,0x7E,0x00},//”未命名文件”,0*/

{0xFF,0x81,0x81,0x81,0x81,0x81,0x81,0xFF},//”未命名文件”,0*/

//图形2

{0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00},

{0x00,0x00,0x24,0x18,0x18,0x24,0x00,0x00},

{0x00,0x42,0x24,0x18,0x18,0x24,0x42,0x00},

{0x81,0x42,0x24,0x18,0x18,0x24,0x42,0x81},

//图形3

{0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00},

{0x00,0x00,0x24,0x18,0x18,0x24,0x00,0x00},

{0x00,0x10,0x24,0x1A,0x58,0x24,0x08,0x00},

{0x08,0x10,0x24,0x9A,0x59,0x24,0x08,0x10},

{0x0C,0x10,0xA4,0x9A,0x59,0x25,0x08,0x30},

{0x0E,0x90,0xA4,0x9A,0x59,0x25,0x09,0x70},

{0x8F,0x90,0xA4,0x9A,0x59,0x25,0x09,0xF1},

{0x0C,0x12,0x12,0x12,0x12,0x12,0x0C,0x00},

{0x04,0x06,0x04,0x04,0x04,0x04,0x0E,0x00},

{0x0C,0x12,0x10,0x08,0x04,0x02,0x1E,0x00},

{0x0C,0x12,0x10,0x0C,0x10,0x12,0x0C,0x00},

{0x08,0x0C,0x0C,0x0A,0x0A,0x1E,0x08,0x00},

{0x1E,0x02,0x02,0x0E,0x10,0x10,0x0E,0x00},

{0x0C,0x12,0x02,0x0E,0x12,0x12,0x0C,0x00},

{0x1E,0x12,0x10,0x08,0x04,0x04,0x04,0x00},

{0x0C,0x12,0x12,0x0C,0x12,0x12,0x0C,0x00},

{0x0C,0x12,0x12,0x1C,0x10,0x12,0x0C,0x00},

{0x0C,0x12,0x12,0x12,0x1E,0x12,0x12,0x00},

{0x0E,0x12,0x12,0x0E,0x12,0x12,0x0E,0x00},

{0x0C,0x12,0x02,0x02,0x02,0x12,0x0C,0x00},

{0x0E,0x12,0x12,0x12,0x12,0x12,0x0E,0x00},

{0x1E,0x02,0x02,0x0E,0x02,0x02,0x1E,0x00},

{0x1E,0x02,0x02,0x0E,0x02,0x02,0x02,0x00},

{0x0C,0x12,0x02,0x1A,0x12,0x12,0x0C,0x00},

{0x12,0x12,0x12,0x1E,0x12,0x12,0x12,0x00},

{0x0E,0x04,0x04,0x04,0x04,0x04,0x0E,0x00},

声明:本文内容来自网络转载或用户投稿,文章版权归原作者和原出处所有。文中观点,不代表本站立场。若有侵权请联系本站删除(kf@86ic.com)https://www.86ic.net/fangan/255846.html

为您推荐

联系我们

联系我们

在线咨询: QQ交谈

邮箱: kf@86ic.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

返回顶部