完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
#include
#define uchar unsigned char #define uint unsigned int #define out0 P0 #define out2 P2 #define out1 P1 void delay(uint j) { uchar i=250; for(;j>0;j--) { while(--i); i=100; } } uchar code string[]= { 0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x03,0xE0,0x7B,0xEF,0x7B,0xEF,0x7B,0xEF,0x03,0xE0, 0x7B,0xEF,0x7B,0xEF,0x7B,0xEF,0x03,0xE0,0x7B,0xAF,0x7F,0xBF,0x7F,0xBF,0xFF,0x80 0xFF,0xFF,0x01,0xE0,0xFF,0xF7,0xFF,0xFB,0xFF,0xFD,0x7F,0xFE,0x7F,0xFF,0x00,0x80, 0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF,0x5F,0xFF,0xBF,0xFF 0xF7,0xFB,0xF7,0xFB,0xF7,0xFB,0x37,0x80,0xC0,0xFB,0xF7,0xFB,0xF7,0xFB,0x57,0xC0, 0xE7,0xDE,0xF3,0xEE,0xF4,0xED,0xF7,0xF5,0xF7,0xFB,0xF7,0xF5,0x75,0xEE,0x9B,0x9F 0x7F,0xFF,0x7F,0xFB,0x7F,0xF7,0x7F,0xF7,0x01,0xC0,0x3F,0xFE,0x5F,0xFD,0x5F,0xFD, 0x6F,0xFB,0x77,0xF7,0x7B,0xEF,0x7D,0xDF,0x7E,0xBF,0x7F,0xFF,0x7F,0xFF,0x7F,0xFF } void main() { uchar i,j,n; while(1) { for(j=0;j<4;j++) { for(n=0;n<40;n++) { for(i=0;i<16;i++) { out1=i%16; out0=string[i*2+j*32]; out2=string[i*2+1+j*32]; delay(4); out0=0xff; out2=0xff; } } } } } 谢谢 |
|
相关推荐
2个回答
|
|
for循环 你是打算做什么循环 ,while的条件和判断结果是不是弄反了
|
|
|
|
你得说说错什么了809496325
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
6130 浏览 3 评论
7398 浏览 1 评论
7633 浏览 0 评论
Protues中自己封装的芯片元件无Program File、Clock Frequency选项怎么解决,求求大神了!
9426 浏览 1 评论
基于51单片机的车辆倒车雷达报警系统,HC-SR04超声波测距,全套资料
1276 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 16:01 , Processed in 0.554122 second(s), Total 78, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号