找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 22141|回复: 16
收起左侧

广州塔diy制作 模型、源码、原理图、照片等完整资料

  [复制链接]
ID:152650 发表于 2016-12-6 17:46 | 显示全部楼层 |阅读模式
本品是基于单片机制作的广州塔模型,由256个LED 灯制作16*16点阵原理,就是做出来的东西有点胖了,半径有点大了,不是小蛮腰的形状,但是讲究这个还不错,,卿大神多多指教了。。。小弟出来砸到,,,还望多多关照

刷灯,显示,检测灯良好

刷灯,显示,检测灯良好

中断控制

中断控制

样式三

样式三

样式二

样式二

样式一

样式一

  1. #include <reg52.h>
  2. #include <intrins.h>
  3. #define uchar unsigned char  
  4. #define uint unsigned int
  5. sbit been=P0^7;
  6. sbit bee=P3^2;  
  7. sbit SCK=P0^0;    //11脚    移位时钟                            //kongzhi++
  8. sbit RCK=P0^1;    //12脚    锁存时钟
  9. sbit DATA=P0^2;   //14数据输入

  10. sbit SCK1=P0^3;    //11脚    移位时钟
  11. sbit RCK1=P0^4;    //12脚    锁存时钟
  12. sbit DATA1=P0^5;   //14数据输入

  13. sbit SCK2=P1^0;    //11脚    移位时钟                                  //kongzhi--
  14. sbit RCK2=P1^1;    //12脚    锁存时钟
  15. sbit DATA2=P1^2;   //14数据输入

  16. sbit SCK3=P1^3;    //11脚    移位时钟
  17. sbit RCK3=P1^4;    //12脚    锁存时钟
  18. sbit DATA3=P1^5;   //14数据输入
  19. uint m,i,dat,temp=0,flag=0;
  20. uint cy,cy1,pw;
  21. uchar code shumaguan[]={0xfe,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x88,0xc0,0x7f,0x6f};//显示0~9的值
  22. uchar code table[]={          //p0.0
  23. 0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,        //0-17
  24. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,           //33
  25. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,                   //50          一圈圈移动
  26. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,                  // 67
  27. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,                                  //83
  28. 0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,                                  //99
  29. 0xfe,0xfc,0xf8,0xf0,0xe0,0xc0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,                                    //115
  30. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,                              //131
  31. 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,                                  //147
  32. 0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,                                  //163
  33. 0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,                                  //179
  34. 0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,                                  //195
  35. 0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,                                  //211
  36. 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,                                  //217
  37. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,                                  //233
  38. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,                                  //249
  39. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,                                  //265
  40. };
  41. uchar code table1[]={          //p2.0
  42. 0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,  
  43. 0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  44. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,
  45. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,
  46. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,
  47. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f,0xff,
  48. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfc,0xf8,0xf0,0xe0,0xc0,0x80,0x00,                                   //7
  49. 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
  50. 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,                                 
  51. 0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,
  52. 0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,
  53. 0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,0x1f,
  54. 0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,
  55. 0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,
  56. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,                                 //15
  57. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,                                 //16
  58. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  59. };
  60. uchar code table2[]={                //xia   8  -
  61. 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f, //1-19
  62. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,                   //20-35
  63. 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,                                                                                                
  64. 0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  65. 0xff,0xfe,0xfc,0xf8,0xe0,0xc0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
  66. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  67. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,                         //7
  68. 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  69. 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  70. 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  71. 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  72. 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  73. 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  74. 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  75. 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,                                          //15
  76. 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,                                           //16
  77. 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,                                          
  78. };
  79. uchar code table3[]={                //shang  8  -
  80. 0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,
  81. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  82. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xff,        
  83. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,
  84. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfc,0xf8,0xe0,0xc0,0x80,0xff,
  85. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  86. 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,                          //7
  87. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,
  88. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,
  89. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,
  90. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,
  91. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,
  92. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,
  93. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,
  94. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,                          //15
  95. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,                         //16
  96. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,
  97.         };

  98. void delay(uint z)
  99. {        uint x,y;
  100.         for(x=z;x>0;x--)
  101.                 for(y=10;y>0;y--);
  102. }
  103. void delay2(uint x)
  104. {
  105.   uint a,b;
  106.   for(a=x;a>0;a--)
  107.    for(b=5;b>0;b--);
  108. }
  109. void write(uchar dat)
  110.    { uint m;for(m=0;m<8;m++){if(dat& 0x80) DATA=1; else DATA=0;  SCK=0; delay(1);         SCK=1;  delay(1); SCK=0;         delay(1);        dat=dat<<1;  }}
  111. void read()
  112.    { RCK=0; delay(1);RCK=1; }        
  113. void write1(uchar dat)
  114.    { uint m;for(m=0;m<8;m++){if(dat& 0x80) DATA1=1; else DATA1=0; SCK1=0; delay(1);        SCK1=1;  delay(1);        SCK1=0;         delay(1);        dat=dat<<1;  }}
  115. void read1()
  116.    { RCK1=1; delay(1);RCK1=0; }
  117. void write2(uchar dat)
  118.    { uint m;for(m=0;m<8;m++){if(dat& 0x80) DATA2=1; else DATA2=0; SCK2=0; delay(1);        SCK2=1;  delay(1);        SCK2=0;         delay(1);        dat=dat<<1;  }}
  119. void read2()
  120.    { RCK2=1; delay(1);RCK2=0; }
  121. void write3(uchar dat)
  122.    { uint m;for(m=0;m<8;m++){if(dat& 0x80) DATA3=1; else DATA3=0; SCK3=0; delay(1);        SCK3=1;  delay(1);        SCK3=0;         delay(1);        dat=dat<<1;  }}
  123. void read3()
  124.    { RCK3=1; delay(1);RCK3=0; }
  125. void one ()
  126. {                 
  127.         write (table [i]);  delay(1000);    read ();        delay(1000);        
  128.         write1(table1[i]);         delay(1000);    read1();    delay(1000);
  129.         write2(table2[i]);        delay(1000);    read2();    delay(1000);                                                            
  130.         write3(table3[i]);         delay(1000);    read3();           delay(1000);               
  131.                  }
  132. void two()
  133. {                 
  134.         write (table [i]);  delay(100);    read ();         delay(100);        
  135.         write1(table1[i]);         delay(100);    read1();  delay(100);
  136.         write2(table2[i]);        delay(100);    read2();  delay(100);                                                            
  137.         write3(table3[i]);         delay(100);    read3();  delay(100);               
  138. }

  139. void three()
  140. {                 
  141.         write (table [i]);  delay(10);    read ();        delay(10);        
  142.         write1(table1[i]);         delay(10);    read1();  delay(10);
  143.         write2(table2[i]);        delay(10);    read2();  delay(10);                                                            
  144.         write3(table3[i]);         delay(10);    read3();  delay(10);               
  145. }

  146. void four()
  147. {                 
  148.         write (table [i]);  delay(1);    read ();  delay(1);        
  149.         write1(table1[i]);         delay(1);    read1();  delay(1);
  150.         write2(table2[i]);        delay(1);    read2();  delay(1);                                                            
  151.         write3(table3[i]);         delay(1);    read3();  delay(1);               
  152. }

  153. void hxd()
  154. {
  155. write (0xff);  delay(1);    read ();  delay(1);        
  156. write1(0xff);         delay(1);    read1();  delay(1);
  157. for(pw=1;pw<cy1;pw++)
  158. {

  159.   write2(0x00);read2();delay2(pw);
  160.   write3(0x00);read2();delay2(cy1-pw);         
  161. }
  162. for(pw=1;pw<cy1;pw++)
  163. {
  164.    write2(0xf0);read2();delay2(pw);
  165.     write3(0xf0);read2();delay2(cy1-pw);         
  166. }
  167. }
  168. /******************半层呼吸灯*********************/
  169. //void bhxd()
  170. //{
  171. //P0=0xff;P1=0xff;
  172. //for(pw=1;pw<cy;pw++)
  173. //{
  174. //   P2=0x00;P3=0xff;delay2(pw);
  175. //   P2=0xff;P3=0x00;delay2(cy-pw);         
  176. //}
  177. //}
  178. void init_int0()
  179. {
  180.         EA=1;
  181.         EX0=1;
  182.         IT0=1;
  183. }
  184. void int0() interrupt 0
  185. {        
  186.   while(bee==1)
  187.         {
  188. //        for(i=115;i<233;i++)four();
  189.                 for(i=83;i>68;i--)three();
  190.                 for(i=68;i<80;i++)four();
  191.                 for(i=68;i<76;i++)four();
  192.                 for(i=68;i<72;i++)four();
  193.                 for(i=68;i<80;i++)three();
  194.                 for(i=68;i<72;i++)four();
  195.                 for(i=68;i<72;i++)three();
  196. //                for(i=115;i<233;i++)four();
  197.                 for(i=68;i<80;i++)four();
  198.                 for(i=68;i<76;i++)three();
  199.                 for(i=68;i<80;i++)three();
  200.                 for(i=68;i<76;i++)four();
  201.                 for(i=68;i<76;i++)three();
  202.                 for(i=68;i<80;i++)four();
  203.                 for(i=68;i<76;i++)three();
  204.                 for(i=68;i<76;i++)three();
  205.                 for(i=68;i<76;i++)four();         
  206.          }
  207. }
  208.         
  209. //        flag=1;
  210. //        if(flag==1)
  211. //                {        
  212. //                        flag=0;
  213. //                        temp++;
  214. //                        if(temp==1)
  215. //                        {
  216. //                                for(i=0;i<233;i++)
  217. //                                {
  218. //                                        four();
  219. ////                                        i=i%232;        
  220. //                                }
  221. //                        }
  222. //                        if(temp==2)
  223. //                        {
  224. //                                temp=0;        
  225. //                                for(i=0;i<233;i++) two();
  226. //                        }
  227. //                        
  228. ////                        switch(temp)
  229. ////                        {
  230. ////                                case 1:for(i=0;i<233;i++)
  231. ////                                                {
  232. ////                                                        four();
  233. ////                                                        i=i%232;        
  234. ////                                                }
  235. ////                                                 break;        
  236. ////                                case 2:for(i=0;i<233;i++) two();temp=0;break;
  237. ////                        }
  238. //                }

  239. void main ()
  240. {
  241.         init_int0();
  242. for(i=68;i<82;i++)three();for(i=82;i>68;i--)three();   /*全亮暗上移*/
  243. for(i=83;i<99;i++)three();for(i=99;i<116;i++)three();  /*列递亮*/
  244. while(1)
  245. {
  246. for(i=115;i<233;i++)two(); /*单个向上增加*/
  247. for(i=34;i<49;i++)two(); /*上一圈*/
  248. for(i=49;i>34;i--)two();
  249. for(i=68;i<83;i++)two();/*全亮liang上移*/
  250. for(i=82;i>68;i--)two();
  251. for(i=68;i<82;i++)two();
  252. for(i=51;i<66;i++)two(); /*全亮暗上移*/
  253. for(i=66;i>51;i--)two(); /*全亮暗上移*/
  254. for(i=25;i<32;i++)two();
  255. for(i=18;i<26;i++)two(); /*左右一列*/
  256. for(i=84;i<99;i++)two(); /*列递亮*/
  257. for(i=99;i<115;i++)two(); /*列递暗*/
  258. for(i=18;i<33;i++)two(); /*左右一列*/
  259. for(i=0;i<8;i++)three(); /*左右两列*/
  260. for(i=8;i>0;i--)two();
  261. for(i=8;i>0;i--)two();

  262. for(i=68;i<83;i++)three();
  263. for(i=82;i>68;i--)three();
  264. for(i=68;i<82;i++)three();
  265. for(i=51;i<66;i++)three();
  266. for(i=66;i>51;i--)three();
  267. for(i=25;i<32;i++)three();
  268. for(i=18;i<26;i++)three();
  269. for(i=84;i<99;i++)three(); /*列递亮*/
  270. for(i=99;i<115;i++)three(); /*列递暗*/
  271. for(i=18;i<33;i++)three(); /*左右一列*/
  272. for(i=0;i<8;i++)three(); /*左右两列*/
  273. for(i=8;i>0;i--)three();
  274. for(i=8;i>0;i--)three();
  275. for(i=8;i<17;i++)three(); /*左右两列*/
  276. for(i=0;i<6;i++)
  277. {
  278. for(i=8;i<17;i++)three();
  279. for(i=8;i<17;i++)three();
  280. for(i=17;i>8;i--)three();}
  281. for(i=83;i<99;i++)three(); /*列递亮*/
  282. for(i=99;i<115;i++)three(); /*列递暗*/

  283. for(i=84;i<88;i++)four(); /*列递亮*/
  284. for(i=88;i>84;i--)two(); /*列递暗*/
  285. for(i=90;i<99;i++)four(); /*列递亮*/
  286. for(i=88;i>86;i--)two(); /*列递暗*/
  287. for(i=92;i<99;i++)four(); /*列递亮*/
  288. for(i=99;i>92;i--)two(); /*列递暗*/
  289. for(i=95;i<99;i++)four(); /*列递亮*/
  290. for(i=99;i>95;i--)two(); /*列递暗*/
  291.         for(i=83;i>68;i--)three();
  292.         for(i=68;i<80;i++)four();
  293.         for(i=68;i<76;i++)four();
  294.         for(i=68;i<72;i++)four();
  295.         for(i=68;i<80;i++)three();
  296.         for(i=68;i<80;i++)two();
  297.         for(i=68;i<76;i++)four();
  298.         for(i=68;i<76;i++)three();
  299.         for(i=68;i<80;i++)four();
  300.         for(i=68;i<76;i++)three();
  301.         for(i=68;i<76;i++)three();
  302.         for(i=68;i<76;i++)four();
  303. for(i=115;i<233;i++)four(); /*单个向上增加*/
  304. for(i=34;i<49;i++)four(); /*上一圈*/
  305. for(i=49;i>34;i--)four();
  306. for(i=68;i<83;i++)four();/*全亮liang上移*/ for(i=68;i<83;i++)four();for(i=68;i<83;i++)four();for(i=68;i<83;i++)four();
  307. for(i=82;i>68;i--)four();
  308. for(i=68;i<82;i++)four();
  309. for(i=51;i<66;i++)four(); /*全亮暗上移*/
  310. for(i=66;i>51;i--)four(); /*全亮暗上移*/
  311. for(i=25;i<32;i++)four();
  312. for(i=84;i<99;i++)four(); /*列递亮*/
  313. for(i=99;i<115;i++)four(); /*列递暗*/

  314. for(i=82;i>68;i--)three();
  315. for(i=82;i>74;i--)three();
  316. for(i=82;i>80;i--)three();
  317. }

  318. //                for(i=242;i<262;i++)one();
  319. }
  320. //for(i=0;i<17;i++)three(); /*左右两列*/
  321. //for(i=17;i<33;i++)three(); /*左右一列*/
  322. //for(i=33;i<50;i++)three(); /*左右一列*/
  323. //for(i=33;i<50;i++)three(); /*上一圈*/
  324. //for(i=51;i<67;i++)three(); /*全亮暗上移*/
  325. //for(i=68;i<83;i++)three(); /*全亮暗上移*/
  326. //for(i=83;i<99;i++)three(); /*列递亮*/
  327. //for(i=99;i<115;i++)three(); /*列递暗*/
  328. //for(i=115;i<233;i++)three(); /*单个向上增加*/               


  329.   
  330.         
复制代码


广州塔595程序.pdf

234.19 KB, 下载次数: 69, 下载积分: 黑币 -5

评分

参与人数 1黑币 +50 收起 理由
admin + 50 共享资料的黑币奖励!

查看全部评分

回复

使用道具 举报

ID:140623 发表于 2017-2-26 17:01 | 显示全部楼层
顶ding
回复

使用道具 举报

ID:165117 发表于 2017-3-1 22:29 | 显示全部楼层
有没有电路图???
回复

使用道具 举报

ID:188914 发表于 2017-4-12 17:25 | 显示全部楼层
大神!请问你这个广州塔是用什么做驱动的?
回复

使用道具 举报

ID:185661 发表于 2017-4-14 07:35 来自手机 | 显示全部楼层
那个程序是通过取模出来还是自己一个一个打的
回复

使用道具 举报

ID:213879 发表于 2017-7-8 17:55 | 显示全部楼层
求原理图,谢谢
回复

使用道具 举报

ID:61840 发表于 2017-7-8 19:58 | 显示全部楼层
看起来还不错,先学习一下啦
回复

使用道具 举报

ID:152650 发表于 2017-7-30 16:25 | 显示全部楼层
gdatgb 发表于 2017-3-1 22:29
有没有电路图???

咩有电路图,直接焊接的
回复

使用道具 举报

ID:152650 发表于 2017-7-30 16:26 | 显示全部楼层
无罪之宾 发表于 2017-7-8 19:58
看起来还不错,先学习一下啦

程序在压缩包里,,哈哈
回复

使用道具 举报

ID:152650 发表于 2017-7-30 16:27 | 显示全部楼层
jamyg 发表于 2017-4-14 07:35
那个程序是通过取模出来还是自己一个一个打的

自己一个一个打出来的,,实践出来的
回复

使用道具 举报

ID:152650 发表于 2017-7-30 16:28 | 显示全部楼层
1737390452shi 发表于 2017-4-12 17:25
**** 作者被禁止或删除 内容自动屏蔽 ****

其实32个I/O口就够用了,但是电流不够可以用三极管放大电流,,,,或者用595驱动
回复

使用道具 举报

ID:551468 发表于 2019-5-30 21:28 | 显示全部楼层
大神你这个是用什么烧录器刷的程序?
回复

使用道具 举报

ID:547186 发表于 2019-12-23 14:08 | 显示全部楼层
有没有元件清单
回复

使用道具 举报

ID:672558 发表于 2019-12-24 17:25 | 显示全部楼层
其实32个I/O口就够用了,但是电流不够可以用三极管放大电流,,,,或者用595驱动
回复

使用道具 举报

ID:381496 发表于 2020-3-17 17:52 | 显示全部楼层
不错,制作中学习知识
回复

使用道具 举报

ID:702057 发表于 2020-3-17 18:16 | 显示全部楼层
看着不错!就是原理图,原件清单没有!跪求。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表