资源描述:
《片机led1616点阵滚动显示c程序》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、51单片机LED16*16点阵滚动显示C程序发布时间:2009-11-2321:07信息来源:实践教学网发布者:admin点击:次 51单片机LED16*16点阵滚动显示C程序(附有电路图)。/******************************************************************功能:LED16*16点阵滚动显示说明:74LS164用作发送数据,P0,P2口用来列选看本程序最好的工具最好旁边有标号和语法着色,推荐keil或UltraEdit懒人提示:要改成自己所要的显示内容,要怎么改?1.要改显示内容改第23~92行代码,还有
2、第119行代码,具体改法见下面注释2.要改滚动速度改第102行代码*******************************************************************//*头文件*/#include#include/*宏定义*/#defineucharunsignedchar#defineuintunsignedint/*函数声明*/voiddelay();/*全局变量*/uintlie;//列选标志/**字模:反显,纵向取模,开头和结尾均加入32个0xFF,用于改善屏滚动显示时循环的连贯性**//*
3、*杭州市公交公司K316路,开往武林广场,发车时间20:30,欢迎大家乘坐!--**宋体,12**//**当前所选字体下一个汉字对应的点阵为:宽度x高度=496x16,调整后为:496x16**/ucharcodetext[1056]={//这里的数据为你要显示的内容的数据量+64(前后各32个0xff)0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x
4、FF,0xFF,0xFF,0xFF,0xFF,//改显示内容以上两行别改0xEF,0xDF,0xEF,0x3F,0xE8,0xFF,0x00,0x00,0xED,0xFF,0xFE,0xFD,0xEF,0xF3,0xEC,0x0F,0x6D,0xFF,0x8D,0xFF,0xED,0xFF,0xEC,0x03,0xEF,0xFD,0xEF,0xFD,0xEF,0xE1,0xFF,0xFF,0xFF,0x7F,0xF8,0xFE,0xFF,0xF9,0xFF,0xE7,0x00,0x1F,0xFB,0xFF,0xFC,0xFF,0xFF,0xFF,0x80,0x01,0xF7
5、,0xFF,0xF9,0xFF,0xFE,0x7F,0xFF,0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