资源描述:
《16×16点阵显示屏》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、16×16点阵显示屏成功点亮!! 看到江同学的3216屏(www.jiangx.net),对于我来说,稍显复杂,所以决定做个1616的屏看看效果,原理图就是以下了,注意做1616时,要去掉一个74LS154(当然这里也能换用74HC154,虽然功耗大,但价格较低),经过两天的奋斗,终于完工了。简单的调试后,点亮了!!编个流动显示的程序,哈哈,很炫啊。心动不如赶快行动啊!! 我是把点阵块焊到一块板子上,可方便检查有无虚焊,控制部分放到了另一张板上,做成的实物图就是下面的了,视频在这里
2、:http://u.youku.com/springvirus(注:以下原理图均来自www.jiangx.net)/*********************************************************程序名称:LED1616点阵流动显示汉字简要说明:最大可显示16*16汉字 P0口接上行线,P2口接下行线,P3口接扫描线编 写: JiangX.net改 编: springvirus**********************
3、***********************************/#include#definehang1 P0 //上行线#definehang2 P2 //下行线#definelie P1//列线#definesum sizeof(hanzi)/32//自动计算汉字字数/*****参数设置*****/#defineziti 16 //字体大小(宽度)#definelight 50 //显示亮度#definemove_spee
4、d50 //移动速度unsignedcharcodehanzi[]={/*--文字:自--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/0x00,0x00,0x00,0xF8,0x48,0x48,0x4C,0x4B,0x4A,0x48,0x48,0x48,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0xFF,0x00,0x00,0x00,/*--文字:
5、制--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/0x00,0x50,0x4F,0x4A,0x48,0xFF,0x48,0x48,0x48,0x00,0xFC,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x3F,0x01,0x01,0xFF,0x21,0x61,0x3F,0x00,0x0F,0x40,0x80,0x7F,0x00,0x00,/*--文字:小--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/0x00,
6、0x00,0x00,0xC0,0x70,0x20,0x00,0xFF,0x00,0x10,0x20,0xC0,0x80,0x00,0x00,0x00,0x04,0x02,0x01,0x00,0x00,0x40,0x80,0x7F,0x00,0x00,0x00,0x00,0x01,0x07,0x02,0x00,/*--文字:型--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/0x10,0x12,0x92,0x7E,0x12,0x12,0xFE,0x12,0x12,0x10,
7、0xFC,0x00,0x00,0xFF,0x00,0x00,0x40,0x42,0x49,0x48,0x48,0x48,0x49,0x7E,0x48,0x48,0x48,0x4A,0x4C,0x4B,0x40,0x00,/*--文字:点--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/0x00,0x00,0x00,0xE0,0x20,0x20,0x20,0x3F,0x24,0x24,0x24,0xF4,0x24,0x00,0x00,0x00,0x00,0x40,0x30,
8、0x07,0x12,0x62,0x02,0x0A,0x12,0x62,0x02,0x0F,0x10,0x60,0x00,0x00,/*--文字:阵--*//*--宋体12;此字体下对应的点阵为:宽x高=16x16 --*/0xFE,0x02,0x12,0x2A,0xC6,0x88,0xC8,0xB8,0x8F,0xE8,0x88,0x88,0x88,0x88,0x00,0x00,0xFF,0x00,0x02,0x04,0x03,0x04,0x04,0x04,0x04