点阵程序--自己写地

点阵程序--自己写地

ID:45034960

大小:92.00 KB

页数:34页

时间:2019-11-08

点阵程序--自己写地_第1页
点阵程序--自己写地_第2页
点阵程序--自己写地_第3页
点阵程序--自己写地_第4页
点阵程序--自己写地_第5页
资源描述:

《点阵程序--自己写地》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、实用文档硬件简单介绍一下:行驱动用154四线译码器加8550驱动,列用74hc595移位寄存器驱动。#include#defineucharunsignedchar#defineuintunsignedint#defineLINEP2//定义行线IO口,即74HC154控制端#defineshudu12//字移动的速度sbitDATA=P1^2;//74HC595数据端sbitCLK=P1^0;//74HC595移位脉冲端sbitCLKR=P1^1;//74HC595数据锁存端ucharmove;//移动几位变量

2、ucharline;//行变量uintword;//字节变量ucharji,gai;//字节变量ucharBUF[4];//4组缓存数组以便左移右移等功能动态更改数据uchar  codetable[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*-- 

3、文字:  笨 --*//*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16  --*/实用文档0x00,0x08,0x7F,0xFC,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x08,0x3F,0xFC,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x04,0xFF,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0

4、x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};/**********************下拉、下移数组************************/uchar  codetable1[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x

5、00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*-- 文字:  蛋 --*//*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16  --*/0x00,0x80,0x78,0x80,0x4B,0xFC,0x48,0x40,0x48,0x48,0x48,0x30,0x78,0xD2,0x4B,0x0A,0x4F,0xF6,0x49,0x20,0x79,0x20,0x4A,0x20,0x02,0x22,0x04,0x22,0x

6、08,0x1E,0x00,0x00,实用文档0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};uchar  codetable2[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0

7、0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,/*-- 文字:  虫 --*//*-- 宋体12; 此字体下对应的点阵为:宽x高=16x16  --*/0x00,0x80,0x00,0x40,0x78,0x40,0x17,0xFE,0x10,0x00,0x13,0xF8,0x7A,0x08,0x12,0x08,0x13,0xF8,0x10,0x40,0x12,0x50,0x1A,0x4

8、8,0x64,0x44,0x04,0x44,0x09,0x40,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。