切换到宽版
  • 740阅读
  • 0回复

[C51]64*32led点阵怎么显示16灰图片 [复制链接]

上一主题 下一主题
离线junzi000
 
发帖
4
M币
1
专家
0
粉丝
1
请问高手们,用image2lcd软件生成的64*32图片的16级灰度数据数组,程序里怎么读取这个数组才能显示在led显示屏上?这个数组的数据是怎么排列的?
我知道16灰,要送4次数据,就是这4次数据我不知道怎么送了,该怎么从数组里取数据呢?8t时送什么数据,4t时送什么数据,2t........1t......求求大侠们啊
例如下面是image2lcd生成的16灰图像数据

const unsigned char gImage_tu[1024] = { /* 0X10,0X04,0X00,0X40,0X00,0X20, */
0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X21,0X12,
0X11,0X11,0X21,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X12,0X11,0X11,0X12,0X11,0X12,0X22,0X22,0X22,0X11,0X22,0X21,
0X11,0X11,0X22,0X21,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X01,0X11,0X12,0X20,0X32,0X21,0X12,0X23,0X33,0X32,0X11,0X22,
0X22,0X22,0X12,0X22,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X12,0X11,0X11,0X00,0X34,0X44,0X33,0X21,0X01,0X23,0X32,0X11,
0X22,0X22,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X12,0X11,0X20,0X08,0XAA,0XBB,0XAA,0X98,0X64,0X11,0X23,0X31,
0X12,0X22,0X22,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X11,0X22,0X01,0X8E,0XDC,0XCB,0XBB,0XBB,0XC9,0X51,0X02,0X34,
0X21,0X11,0X22,0X22,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X21,0X21,0X07,0XED,0XCC,0XCC,0XCB,0XBB,0XA9,0X87,0X42,0X23,
0X32,0X21,0X22,0X22,0X22,0X22,0X22,0X22,0X21,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X12,0X00,0X5C,0XEB,0XCC,0XCC,0XCC,0XCC,0XC9,0XAE,0XD6,0X11,
0X54,0X21,0X22,0X21,0X22,0X22,0X22,0X22,0X22,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X12,0X03,0XDD,0XCC,0XCD,0XDC,0XBB,0XBB,0XBC,0XBB,0XED,0X73,
0X45,0X31,0X22,0X21,0X22,0X22,0X22,0X22,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X11,0X07,0XEC,0XCD,0XCC,0XCC,0XDD,0XCA,0XAC,0XA9,0XBC,0XDF,
0X60,0X43,0X03,0X22,0X22,0X22,0X22,0X22,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X10,0X1A,0XEC,0XCA,0X87,0X78,0X9A,0XCD,0XCD,0XCB,0XBC,0XDF,
0XD3,0X24,0X11,0X22,0X22,0X22,0X22,0X22,0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X11,0X0A,0XED,0XB6,0X77,0X78,0X87,0X8B,0XDD,0XDB,0XBB,0XCD,
0XFB,0X19,0XB0,0X12,0X22,0X22,0X22,0X22,0X21,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X21,0X08,0XED,0X85,0X77,0X8D,0XFA,0X56,0X9B,0XDC,0XBA,0XBD,
0XEF,0XAF,0XF6,0X01,0X22,0X22,0X22,0X22,0X22,0X11,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X21,0X06,0XED,0X77,0X76,0X6A,0XFC,0X77,0X68,0XBD,0XDB,0XBC,
0XDE,0XFF,0XFF,0X71,0X22,0X22,0X22,0X22,0X22,0X21,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X21,0X13,0XCD,0X88,0XA9,0X77,0X98,0X77,0X76,0X8A,0XCC,0XCC,
0XCE,0XDE,0XEF,0XF2,0X22,0X22,0X22,0X22,0X22,0X22,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X11,0X20,0X9F,0XA7,0XBC,0XCB,0X99,0X87,0X86,0X68,0XBC,0XCC,
0XDD,0XFE,0XEF,0XA0,0X22,0X22,0X22,0X22,0X22,0X22,0X21,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X12,0X10,0X4D,0XD8,0X68,0XAB,0XBB,0XCD,0XB9,0X86,0X8C,0XCB,
0XCE,0XFE,0XFF,0X41,0X22,0X22,0X22,0X21,0X22,0X22,0X22,0X22,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X11,0X22,0X19,0XEA,0X77,0X78,0X88,0XAB,0XCC,0XD9,0X8A,0XBC,
0XCD,0XFE,0XFB,0X02,0X22,0X22,0X22,0X22,0X22,0X22,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X22,0X23,0X17,0XFD,0XC9,0X9A,0XA8,0X87,0X89,0XA8,0X69,0XBB,
0XBD,0XFF,0XD4,0X03,0X22,0X22,0X11,0X22,0X22,0X22,0X22,0X22,0X11,0X11,0X11,0X12,
0X11,0X11,0X11,0X11,0X22,0X23,0X27,0XED,0XDB,0XAC,0XDB,0X99,0X98,0X97,0X69,0XBB,
0XBC,0XEF,0X80,0X21,0X32,0X22,0X22,0X22,0X11,0X11,0X11,0X11,0X22,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X12,0X32,0X23,0X7C,0XCC,0XAB,0XDC,0XBD,0XBA,0XA8,0X7A,0XCB,
0XBB,0XEF,0X84,0X62,0X22,0X11,0X22,0X22,0X22,0X22,0X21,0X11,0X22,0X21,0X11,0X11,
0X11,0X11,0X11,0X11,0X22,0X32,0X30,0X3C,0XDE,0XDC,0XCB,0X9B,0X98,0X99,0X9B,0XCC,
0XCC,0XDB,0XB9,0X54,0X54,0X33,0X22,0X10,0X22,0X22,0X22,0X22,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X11,0X12,0X20,0X7F,0XCC,0XDE,0XDB,0XAA,0XA9,0XAB,0XCC,0XCC,
0XCC,0XCA,0XB5,0X35,0X55,0X55,0X54,0X44,0X22,0X21,0X11,0X11,0X11,0X11,0X11,0X11,
0X11,0X11,0X11,0X11,0X11,0X12,0X00,0XBF,0X64,0X7A,0XBD,0XEE,0XDC,0XCD,0XDC,0XCC,
0XCC,0XCE,0XA0,0X5A,0X23,0X45,0X44,0X56,0X65,0X44,0X32,0X11,0X00,0X11,0X22,0X11,
0X11,0X11,0X11,0X11,0X11,0X11,0X10,0X7F,0XC1,0X03,0X46,0X8C,0XCD,0XED,0XDC,0XCC,
0XCC,0XDB,0X53,0X57,0X05,0XA4,0X06,0X63,0X36,0X54,0X55,0X44,0X87,0X12,0X21,0X11,
0X11,0X11,0X11,0X11,0X11,0X11,0X10,0X6F,0XF8,0X02,0X22,0X33,0X57,0XAB,0XDD,0XDD,
0XDC,0XCC,0X97,0X75,0X54,0X51,0X38,0X61,0X78,0X42,0X46,0X68,0XDB,0X31,0X11,0X11,
0X11,0X11,0X11,0X11,0X11,0X11,0X10,0X6F,0XFC,0X02,0X33,0X33,0X33,0X44,0X68,0XAB,
0XCD,0XEA,0X54,0X67,0X87,0X87,0X66,0X41,0X56,0X22,0X67,0X68,0X77,0X10,0X12,0X11,
0X11,0X11,0X11,0X11,0X11,0X11,0X10,0X6F,0XFC,0X11,0X23,0X23,0X33,0X33,0X34,0X56,
0X78,0X95,0X11,0X34,0X44,0X78,0X88,0X88,0X56,0X33,0X78,0X79,0X47,0X21,0X22,0X11,
0X11,0X11,0X11,0X11,0X11,0X21,0X10,0X5F,0XFD,0X11,0X12,0X12,0X23,0X44,0X44,0X33,
0X22,0X22,0X22,0X21,0X21,0X23,0X45,0X77,0X99,0X88,0X88,0X87,0X78,0X31,0X11,0X11,
0X11,0X11,0X11,0X11,0X11,0X21,0X11,0X3D,0XFC,0X01,0X22,0X32,0X22,0X22,0X33,0X33,
0X22,0X22,0X33,0X33,0X22,0X21,0X11,0X33,0X45,0X78,0X89,0X98,0X87,0X10,0X11,0X11,
0X11,0X11,0X11,0X11,0X11,0X11,0X11,0X1A,0XFD,0X30,0X11,0X21,0X22,0X33,0X33,0X22,
0X32,0X22,0X22,0X22,0X22,0X22,0X22,0X21,0X11,0X23,0X45,0X78,0X96,0X01,0X11,0X21,
0X11,0X11,0X11,0X11,0X11,0X11,0X21,0X07,0XFF,0X91,0X12,0X12,0X22,0X22,0X22,0X22,
0X22,0X22,0X22,0X22,0X22,0X22,0X22,0X22,0X22,0X11,0X11,0X25,0X74,0X02,0X11,0X11,
};