昨晚在做LED点阵无意中拍摄到的,呵呵,实际不是这样。
为了显示上面那几个字,我采用手工绘图方法绘出来。
显示代码如下:
unsigned char code Display_Font[64][16]=
{
//1
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x03, 0x03,0x03,0x03,0x03,0x01,0x03,0x03,0x03,/*第一个汉字第一行显示*/
0x03,0x03,0x03,0x03,0x02,0x03,0x03,0x03, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,/*第二个汉字第一行显示*/
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x03, 0x01,0x03,0x03,0x03,0x03,0x03,0x03,0x03,/*第三个汉字第一行显示*/
0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03, 0x03,0x03,0x01,0x03,0x03,0x03,0x03,0x03,/*第四个汉字第一行显示*/
//2
0x03,0x03,0x03,0x03,0x01,0x03,0x01,0x03, 0x03,0x03,0x03,0x01,0x01,0x01,0x03,0x03,
0x03,0x03,0x03,0x03,0x02,0x03,0x03,0x03, 0x03,0x03,0x03,0x03,0x02,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x03, 0x01,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03, 0x01,0x01,0x01,0x01,0x03,0x03,0x03,0x03,
//3
0x03,0x01,0x01,0x01,0x01,0x01,0x01,0x01, 0x03,0x01,0x01,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x02,0x02,0x02,0x02,0x02, 0x02,0x02,0x02,0x02,0x02,0x02,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x03, 0x01,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x01,0x01,0x01,0x01, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
//4
0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03, 0x03,0x01,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x02,0x03,0x03,0x03,0x02, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x01,0x03,0x01,0x01,0x03,0x01,0x01, 0x01,0x03,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x03, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
//5
0x03,0x03,0x01,0x03,0x03,0x03,0x01,0x03, 0x03,0x01,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x02,0x03,0x03,0x03,0x03,0x02, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x01,0x03,0x01,0x03,0x01,0x03,0x03, 0x01,0x01,0x01,0x01,0x01,0x01,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x01, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
//6
0x03,0x03,0x03,0x01,0x03,0x01,0x03,0x03, 0x03,0x01,0x03,0x03,0x03,0x01,0x03,0x03,
0x03,0x02,0x03,0x03,0x03,0x03,0x03,0x02, 0x03,0x03,0x03,0x02,0x03,0x03,0x03,0x03,
0x03,0x01,0x03,0x01,0x03,0x03,0x03,0x03, 0x01,0x03,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x01, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
//7
0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01, 0x03,0x01,0x01,0x01,0x01,0x01,0x01,0x03,
0x03,0x03,0x03,0x02,0x02,0x02,0x02,0x02, 0x02,0x02,0x02,0x02,0x02,0x03,0x03,0x03,
0x01,0x03,0x03,0x01,0x03,0x03,0x03,0x03, 0x01,0x03,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x01, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
//8
0x03,0x03,0x03,0x01,0x03,0x01,0x03,0x03, 0x03,0x01,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x02,0x03,0x03,0x03,0x02, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x03, 0x01,0x03,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x01, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
//9
0x03,0x01,0x01,0x01,0x01,0x01,0x01,0x03, 0x03,0x01,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x02,0x03,0x03,0x03,0x02, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x03, 0x01,0x03,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x01,0x03,0x03,0x03,0x03,0x01, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
//10
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x03, 0x03,0x01,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x02,0x03,0x03,0x03,0x02, 0x03,0x03,0x03,0x03,0x03,0x02,0x03,0x03,
0x03,0x03,0x03,0x01,0x01,0x01,0x01,0x01, 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x03,
0x03,0x01,0x03,0x03,0x03,0x03,0x03,0x01, 0x03,0x03,0x03,0x03,0x03,0x01,0x03,0x03,
//11
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x03, 0x03,0x01,0x03,0x03,0x01,0x03,0x03,0x03,
0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02, 0x02,0x02,0x02,0x02,0x02,0x02,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x03, 0x01,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x01,0x01,0x01,0x01,0x01,0x01,0x01, 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x03,
//12
0x03,0x03,0x01,0x01,0x03,0x01,0x03,0x03, 0x03,0x01,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x02, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x01, 0x03,0x01,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x03,0x01,0x03,0x03,0x01, 0x03,0x03,0x01,0x03,0x03,0x03,0x03,0x03,
//13
0x03,0x01,0x03,0x01,0x03,0x03,0x01,0x01, 0x01,0x03,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x02, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x01, 0x03,0x03,0x01,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x01, 0x03,0x03,0x03,0x01,0x03,0x03,0x03,0x03,
//14
0x01,0x03,0x03,0x01,0x03,0x03,0x03,0x01, 0x01,0x03,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x02, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x03,0x01,0x03, 0x03,0x03,0x03,0x01,0x01,0x01,0x03,0x03,
0x03,0x03,0x01,0x03,0x03,0x03,0x03,0x01, 0x03,0x03,0x03,0x01,0x01,0x03,0x03,0x03,
//15
0x03,0x01,0x03,0x01,0x03,0x03,0x01,0x03, 0x03,0x03,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x02, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x03,0x01,0x03,0x03, 0x03,0x03,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x01,0x03,0x03,0x03,0x01,0x03,0x01, 0x03,0x03,0x03,0x03,0x01,0x03,0x03,0x03,
//16
0x03,0x03,0x01,0x03,0x03,0x03,0x03,0x03, 0x03,0x03,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x02, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,
0x03,0x03,0x03,0x01,0x01,0x03,0x03,0x03, 0x03,0x03,0x03,0x03,0x01,0x03,0x03,0x03,
0x03,0x03,0x03,0x03,0x03,0x03,0x01,0x03, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03/*第四个汉字第16行显示*/
};
"0x03"表示无显示
"0x01"表示显示绿色
"0x02"表示显示红色
但在数组中的每个数据只有最后一位或二位有效,其接口如下
数据只中其中R1或G1输入,其和单片机的的连接如下
不了解LED显示屏原理的同学可以去这里看一下测试过程
[url=http://hxembed.blog.163.com/blog/static/137438148201011384246221/edit/?mode=prev][/url]
我想问大家有没有好的软件可以编辑这种字体,或有没有其它好的办法。手工绘太难了。
|